mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 04:04:16 +00:00
* use hardening linker flags only with gcc
This commit is contained in:
parent
2b43dfbfca
commit
4685908ead
@ -114,7 +114,7 @@ message(STATUS "---------------------------------------")
|
|||||||
|
|
||||||
add_executable ( ${PROJECT_NAME} ${SOURCES} )
|
add_executable ( ${PROJECT_NAME} ${SOURCES} )
|
||||||
|
|
||||||
if (WITH_HARDENING)
|
if (WITH_HARDENING AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||||
set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "-z relro -z now" )
|
set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "-z relro -z now" )
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user