summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-cluster/kronosnet/files/kronosnet-1.23-no-extra-fortify-source.patch')
-rw-r--r--sys-cluster/kronosnet/files/kronosnet-1.23-no-extra-fortify-source.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/sys-cluster/kronosnet/files/kronosnet-1.23-no-extra-fortify-source.patch b/sys-cluster/kronosnet/files/kronosnet-1.23-no-extra-fortify-source.patch
new file mode 100644
index 000000000000..83acebb40298
--- /dev/null
+++ b/sys-cluster/kronosnet/files/kronosnet-1.23-no-extra-fortify-source.patch
@@ -0,0 +1,18 @@
+We already set this via GCC (patched in) and setting it individually per-package
+like this causes redefinition errors if folks try to use the new =3 level.
+
+So, protection is the same without this, and this patch removes
+the trouble of upgrading to =3 which we're working on.
+
+https://bugs.gentoo.org/847790
+--- a/configure.ac
++++ b/configure.ac
+@@ -324,7 +324,7 @@ if test "x${enable_debug}" = xyes; then
+ FORTIFY_CFLAGS=""
+ else
+ OPT_CFLAGS="-O3"
+- FORTIFY_CFLAGS="-D_FORTIFY_SOURCE=2"
++ FORTIFY_CFLAGS=""
+ fi
+
+ # Check for availablility of hardening options