1
0
Fork 0

Hardening flags only for non-packaged builds.

This commit is contained in:
John Preston 2021-09-28 22:07:29 +04:00
parent c4c2bf4bad
commit 18d7c34ce1

View file

@ -27,9 +27,6 @@ INTERFACE
target_link_options(common_options
INTERFACE
-Wl,--as-needed
-Wl,-z,relro
-Wl,-z,now
-pie
)
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
@ -106,6 +103,9 @@ if (NOT DESKTOP_APP_USE_PACKAGED)
-pthread
-rdynamic
-fwhole-program
-Wl,-z,relro
-Wl,-z,now
-pie
)
endif()