Use _FORTIFY_SOURCE level 3
authorChristian Göttsche <cgzones@googlemail.com>
Thu, 22 Dec 2022 16:00:53 +0000 (17:00 +0100)
committerNoah Meyerhans <noahm@debian.org>
Tue, 13 May 2025 00:36:26 +0000 (20:36 -0400)
Forwarded: not-needed

Gbp-Pq: Name Use-_FORTIFY_SOURCE-level-3.patch

m4/dovecot.m4
pigeonhole/m4/dovecot.m4

index cc4f8d4ae60170f2862afeae5c9a8dd9a6a5c73e..cc7b859f59d047aa0674a188c87b92b1c8a10428 100644 (file)
@@ -9,7 +9,7 @@ dnl modifications, as long as this notice is preserved.
 # serial 42
 
 dnl
-dnl Check for support for D_FORTIFY_SOURCE=2
+dnl Check for support for D_FORTIFY_SOURCE=3
 dnl
 
 AC_DEFUN([AC_CC_D_FORTIFY_SOURCE],[
@@ -17,8 +17,8 @@ AC_DEFUN([AC_CC_D_FORTIFY_SOURCE],[
     AS_IF([test "$enable_hardening" = yes], [
       case "$host" in
         *)
-          gl_COMPILER_OPTION_IF([-O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2], [
-            CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
+          gl_COMPILER_OPTION_IF([-O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3], [
+            CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3"
             ],
             [],
             [AC_LANG_PROGRAM()]
index 4964e2c60288f3941914b89efc828694f4f09359..f59fcb9d8b7d0eff8a6cce76cca989387313c061 100644 (file)
@@ -9,7 +9,7 @@ dnl modifications, as long as this notice is preserved.
 # serial 41
 
 dnl
-dnl Check for support for D_FORTIFY_SOURCE=2
+dnl Check for support for D_FORTIFY_SOURCE=3
 dnl
 
 AC_DEFUN([AC_CC_D_FORTIFY_SOURCE],[
@@ -17,8 +17,8 @@ AC_DEFUN([AC_CC_D_FORTIFY_SOURCE],[
     AS_IF([test "$enable_hardening" = yes], [
       case "$host" in
         *)
-          gl_COMPILER_OPTION_IF([-O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2], [
-            CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
+          gl_COMPILER_OPTION_IF([-O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3], [
+            CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3"
             ],
             [],
             [AC_LANG_PROGRAM()]