Hardening flags only for non-packaged builds.
This commit is contained in:
parent
c4c2bf4bad
commit
18d7c34ce1
1 changed files with 3 additions and 3 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue