From 4f2b4ebe4491d32c649a29144dcc65ada70b04f6 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Mon, 11 Jul 2022 00:22:01 +0200 Subject: [PATCH] Compile pthread-mutex-simple in a way that allows its model-checking --- examples/sthread/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) 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) -- 2.20.1