diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2015-11-30 14:14:38 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2015-11-30 14:14:38 +0000 |
commit | 0c7c6cdb1584e9bf5bc4a5287067aaa4457c2827 (patch) | |
tree | 3cf9a7f3e1cc6a0cf366c99bc92eefba305c8286 /testing/openvas-manager/002-fortify-source.patch | |
parent | 23ea12524fbace868f5843a3dd4eac1240859512 (diff) | |
download | aports-0c7c6cdb1584e9bf5bc4a5287067aaa4457c2827.tar.bz2 aports-0c7c6cdb1584e9bf5bc4a5287067aaa4457c2827.tar.xz |
testing/openvas-manager: new aport
Diffstat (limited to 'testing/openvas-manager/002-fortify-source.patch')
-rw-r--r-- | testing/openvas-manager/002-fortify-source.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/openvas-manager/002-fortify-source.patch b/testing/openvas-manager/002-fortify-source.patch new file mode 100644 index 0000000000..539fa7eef5 --- /dev/null +++ b/testing/openvas-manager/002-fortify-source.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 203f8b9..403e091 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -284,7 +284,7 @@ configure_file (tools/openvas-migrate-to-postgres.in tools/openvas-migrate-to-po + + ## 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 -D_FILE_OFFSET_BITS=64") |