It's failing with:
./src/mc/sosp/mc_checkpoint.cpp:205: [root/CRITICAL] Multiple read only segments for [...], not supported.
set(SIMGRID_DEP "${SIMGRID_DEP} -Wl,--as-needed -latomic -Wl,--no-as-needed")
endif()
set(SIMGRID_DEP "${SIMGRID_DEP} -Wl,--as-needed -latomic -Wl,--no-as-needed")
endif()
+if(enable_model-checking AND CMAKE_COMPILER_IS_GNUCC AND LINKER_VERSION VERSION_GREATER_EQUAL "2.30")
+ set(SIMGRID_DEP "${SIMGRID_DEP} -Wl,-znoseparate-code")
+endif()
+
target_link_libraries(simgrid ${SIMGRID_DEP})
# Dependencies from maintainer mode
target_link_libraries(simgrid ${SIMGRID_DEP})
# Dependencies from maintainer mode