forked from osmocom/wireshark
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:
parent
86f22c2161
commit
3fb1d6853d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue