forked from weaselab/conflict-set
Enable relro for shared lib
This commit is contained in:
+4
-2
@@ -78,8 +78,10 @@ if(NOT CMAKE_BUILD_TYPE STREQUAL Debug)
|
||||
endif()
|
||||
|
||||
if(NOT APPLE)
|
||||
target_link_options(${PROJECT_NAME} PRIVATE
|
||||
LINKER:--version-script=${CMAKE_SOURCE_DIR}/linker.map)
|
||||
target_link_options(
|
||||
${PROJECT_NAME} PRIVATE
|
||||
LINKER:--version-script=${CMAKE_SOURCE_DIR}/linker.map
|
||||
LINKER:-z,relro,-z,now,-z,noexecstack)
|
||||
endif()
|
||||
|
||||
add_library(${PROJECT_NAME}-static STATIC
|
||||
|
||||
Reference in New Issue
Block a user