-
Notifications
You must be signed in to change notification settings - Fork 208
Closed
Description
Hey,
when building for MacOS M1 I get the following error: ld: library not found for -lcrt0.o while clang is trying to build the tools. I figured out that this might caused by the static flag here:
if (CMAKE_CROSSCOMPILING)
# statically link when cross compiling so emulator doesn't need library paths
if (MSVC)
set_target_properties(foonathan_memory_node_size_debugger PROPERTIES LINK_FLAGS "/WHOLEARCHIVE")
else()
set_target_properties(foonathan_memory_node_size_debugger PROPERTIES LINK_FLAGS "-static")
endif()
endif()
which seems to be not supported: https://stackoverflow.com/questions/3801011/ld-library-not-found-for-lcrt0-o-on-osx-10-6-with-gcc-clang-static-flag
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels