diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-19 10:01:27 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-19 11:24:37 +0000 |
commit | 1d98247a68304d44413a33e3ca074cd07c3aabea (patch) | |
tree | 91b0ca4e83c977a573aa26cf035ae78a00c89d4a /community/openvas-scanner/001-cmakelist-fortify.patch | |
parent | d456651d95aefa62c7b38d7af4a105ebb66f279c (diff) | |
download | aports-1d98247a68304d44413a33e3ca074cd07c3aabea.tar.bz2 aports-1d98247a68304d44413a33e3ca074cd07c3aabea.tar.xz |
community/openvas-scanner: moved from testing
Diffstat (limited to 'community/openvas-scanner/001-cmakelist-fortify.patch')
-rw-r--r-- | community/openvas-scanner/001-cmakelist-fortify.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/community/openvas-scanner/001-cmakelist-fortify.patch b/community/openvas-scanner/001-cmakelist-fortify.patch new file mode 100644 index 0000000000..e77214f945 --- /dev/null +++ b/community/openvas-scanner/001-cmakelist-fortify.patch @@ -0,0 +1,21 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 588f5d8..a98929f 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -34,6 +34,7 @@ if (POLICY CMP0005) + endif (POLICY CMP0005) + + include (FindPkgConfig) ++include(CheckIncludeFile) + + if (NOT PKG_CONFIG_FOUND) + message(FATAL_ERROR "pkg-config executable not found. Aborting.") +@@ -225,7 +226,7 @@ configure_file (tools/greenbone-nvt-sync.in tools/greenbone-nvt-sync @ONLY) + + ## Program + +-set (HARDENING_FLAGS "-Wformat -Wformat-security -O2 -D_FORTIFY_SOURCE=2 -fstack-protector -Wl,-z,relro -Wl,-z,now") ++set (HARDENING_FLAGS "-Wformat -Wformat-security -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector -Wl,-z,relro -Wl,-z,now") + + set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Werror") + set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${HARDENING_FLAGS} -Wall -D_BSD_SOURCE -D_ISOC99_SOURCE -D_SVID_SOURCE -D_DEFAULT_SOURCE") |