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()
Hey,
when building for MacOS M1 I get the following error:
ld: library not found for -lcrt0.owhile clang is trying to build the tools. I figured out that this might caused by thestaticflag here: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