瀏覽代碼

- added hardening compiler- and linker flags

master
Andreas Romeyke 10 月之前
父節點
當前提交
5a5a36b46f
共有 1 個檔案被更改,包括 5 行新增0 行删除
  1. +5
    -0
      CMakeLists.txt

+ 5
- 0
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…
取消
儲存