cmake: Enable PIE when it is available by default

Change-Id: I88930b8a9de596f93677052b2046c1b85cc34c6b
Reviewed-on: https://code.wireshark.org/review/10635
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Reviewed-by: Balint Reczey <balint@balintreczey.hu>
This commit is contained in:
Balint Reczey 2015-09-24 09:56:14 +02:00
parent 86f22c2161
commit 3fb1d6853d
1 changed files with 2 additions and 0 deletions

View File

@ -346,6 +346,7 @@ else()
-fwrapv
-fno-strict-overflow
-fno-delete-null-pointer-checks
-fPIE
-Wvla
-Waddress
-Wattributes
@ -566,6 +567,7 @@ endif()
if(NOT CMAKE_C_COMPILER_ID MATCHES "MSVC")
set(WIRESHARK_LD_FLAGS
-Wl,--as-needed
-fPIE -pie
# -flto
# -fwhopr
# -fwhole-program