Use _FORTIFY_SOURCE level 3
authorChristian Göttsche <cgzones@googlemail.com>
Thu, 22 Dec 2022 16:00:53 +0000 (17:00 +0100)
committerPeter Michael Green <plugwash@raspbian.org>
Thu, 20 Jun 2024 17:16:27 +0000 (17:16 +0000)
Gbp-Pq: Name Use-_FORTIFY_SOURCE-level-3.patch

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

index 8092bf57c2b15ef184d1e27289c4c3306001f1ed..558aee4a28137e3313a44386a5aed9c834db31a6 100644 (file)
@@ -9,7 +9,7 @@ dnl modifications, as long as this notice is preserved.
 # serial 34
 
 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 037d5e40e673b564c6f4c52d72bfd6d4cebea359..a3e0883210fdc550c2a69e04c6dd1d2f70201680 100644 (file)
@@ -9,7 +9,7 @@ dnl modifications, as long as this notice is preserved.
 # serial 34
 
 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()]