Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Compile pthread-mutex-simple in a way that allows its model-checking
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Sun, 10 Jul 2022 22:22:01 +0000 (00:22 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Sun, 10 Jul 2022 22:22:11 +0000 (00:22 +0200)
examples/sthread/CMakeLists.txt

index bf915fc..6a91932 100644 (file)
@@ -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)