1
0
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:
hagen 2014-09-17 06:03:16 +00:00
parent 2b43dfbfca
commit 4685908ead

View File

@ -114,7 +114,7 @@ message(STATUS "---------------------------------------")
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" )
endif ()