diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-18 11:58:49 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-18 11:59:48 +0000 |
commit | 3bc8f4ab96a4d4d196c40d6fab40367396d3f17b (patch) | |
tree | 8737927e65bd4b5f3dcede3027c1e796ae683424 /community/openvas-cli/001-fortify-source.patch | |
parent | c0c65e93d4e2c13f299c0921fef7fe9574f0a962 (diff) | |
download | aports-3bc8f4ab96a4d4d196c40d6fab40367396d3f17b.tar.bz2 aports-3bc8f4ab96a4d4d196c40d6fab40367396d3f17b.tar.xz |
community/openvas-cli: moved from testing
Diffstat (limited to 'community/openvas-cli/001-fortify-source.patch')
-rw-r--r-- | community/openvas-cli/001-fortify-source.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/community/openvas-cli/001-fortify-source.patch b/community/openvas-cli/001-fortify-source.patch new file mode 100644 index 0000000000..49a9cdfd97 --- /dev/null +++ b/community/openvas-cli/001-fortify-source.patch @@ -0,0 +1,16 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index db7cb9b..3681573 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -190,9 +190,9 @@ configure_file (VERSION.in VERSION) + ## Program + + if (MINGW) +- set (HARDENING_FLAGS "-Wformat -Wformat-security -O2 -D_FORTIFY_SOURCE=2") ++ set (HARDENING_FLAGS "-Wformat -Wformat-security -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2") + else (MINGW) +- set (HARDENING_FLAGS "-Wformat -Wformat-security -O2 -D_FORTIFY_SOURCE=2 -fstack-protector") ++ set (HARDENING_FLAGS "-Wformat -Wformat-security -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector") + set (LINKER_HARDENING_FLAGS "-Wl,-z,relro -Wl,-z,now") + endif (MINGW) + |