From: Martin Quinson Date: Sun, 10 Jul 2022 22:22:01 +0000 (+0200) Subject: Compile pthread-mutex-simple in a way that allows its model-checking X-Git-Tag: v3.32~158 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/4f2b4ebe4491d32c649a29144dcc65ada70b04f6?hp=b31e581e1422bec5a4088d3cadb53f8bf39c38ee Compile pthread-mutex-simple in a way that allows its model-checking --- diff --git a/examples/sthread/CMakeLists.txt b/examples/sthread/CMakeLists.txt index bf915fc8c7..6a91932067 100644 --- a/examples/sthread/CMakeLists.txt +++ b/examples/sthread/CMakeLists.txt @@ -11,6 +11,7 @@ foreach(x add_executable (pthread-${x} EXCLUDE_FROM_ALL pthread-${x}.c) set_target_properties(pthread-${x} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) target_link_libraries(pthread-${x} PRIVATE Threads::Threads) + target_link_options(pthread-${x} PUBLIC "-Wl,-znorelro -Wl,-znoseparate-code") add_dependencies(tests pthread-${x}) ADD_TESH_FACTORIES(pthread-${x} "^thread" --setenv libdir=${CMAKE_BINARY_DIR}/lib --cd ${CMAKE_BINARY_DIR}/examples/sthread ${CMAKE_CURRENT_SOURCE_DIR}/pthread-${x}.tesh)