Closed wenq1 closed 1 year ago
I removed this and it works on Darwin. Maybe -fuse-ld=bfd should be wrapped inside linux platform? Like
if (LINUX)
# if( LINK_PHASE)
# target_link_options( "${EXECUTABLE_LINK_TARGET}" PUBLIC -fuse-ld=bfd)
# endif()
endif ()
I didn't expect musl to work on Apple at all. I probably would negate that and say if( NOT APPLE)
, because "bfd" isn't linux only I think.
That sounds good. And freebsd guys will be more happy if so.
If you can make a pull request out of this, it'd be appreciated (then I don't have to search for the correct cmake file :laughing: )
Btw if it is using musl, is it supposed to work on Darwin? I think probably no.