summaryrefslogtreecommitdiff
path: root/src/tctdb/tools/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/tctdb/tools/CMakeLists.txt')
-rw-r--r--src/tctdb/tools/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tctdb/tools/CMakeLists.txt b/src/tctdb/tools/CMakeLists.txt
index e819900..39998d1 100644
--- a/src/tctdb/tools/CMakeLists.txt
+++ b/src/tctdb/tools/CMakeLists.txt
@@ -1,7 +1,8 @@
link_libraries(ejdb_p)
add_executable(jbtmgr jbtmgr.c)
set_target_properties(jbtmgr PROPERTIES
- COMPILE_FLAGS "-DEJDB_STATIC")
+ LINK_FLAGS "-Wl,--as-needed -pie"
+ COMPILE_FLAGS "-DEJDB_STATIC -fPIE")
install(TARGETS jbtmgr
FRAMEWORK DESTINATION ${FRAMEWORK_INSTALL_DIR}