Browse Source

* use hardening linker flags only with gcc

pull/98/head
hagen 10 years ago
parent
commit
4685908ead
  1. 2
      build/CMakeLists.txt

2
build/CMakeLists.txt

@ -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…
Cancel
Save