Hi,

The attached patch seems to work (ie replace atomic-library with it).
Using target_link_libraries should put any linker arguments at the end
instead of the beginning.

Thanks,
James
--- a/tools/cmake/MakeLib.cmake
+++ b/tools/cmake/MakeLib.cmake
@@ -114,6 +114,7 @@ if(enable_smpi AND APPLE)
   set(SIMGRID_DEP "${SIMGRID_DEP} -Wl,-U -Wl,_smpi_simulated_main")
 endif()
 
+set(SIMGRID_DEP "${SIMGRID_DEP} -Wl,--as-needed -latomic -Wl,--no-as-needed")
 target_link_libraries(simgrid  ${SIMGRID_DEP})
 
 # Dependencies from maintainer mode

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to