Browse Source

- added hardening compiler- and linker flags

master
Andreas Romeyke 2 years ago
parent
commit
5a5a36b46f
  1. 5
      CMakeLists.txt

5
CMakeLists.txt

@ -1,5 +1,10 @@
cmake_minimum_required (VERSION 2.6)
project (libcbag)
# add default CFLAGS
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fstack-protector-strong -Wformat -Werror=format-security")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-z,relro -fPIE")
add_subdirectory(src)
# TESTS
add_subdirectory(test)

Loading…
Cancel
Save