From e344837237f43f8eb67962bad999d0cef657d673 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20G=C3=B6ttsche?= Date: Thu, 22 Dec 2022 17:00:53 +0100 Subject: [PATCH] Use _FORTIFY_SOURCE level 3 Forwarded: not-needed Gbp-Pq: Name Use-_FORTIFY_SOURCE-level-3.patch --- m4/dovecot.m4 | 6 +++--- pigeonhole/m4/dovecot.m4 | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/m4/dovecot.m4 b/m4/dovecot.m4 index cc4f8d4..cc7b859 100644 --- a/m4/dovecot.m4 +++ b/m4/dovecot.m4 @@ -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()] diff --git a/pigeonhole/m4/dovecot.m4 b/pigeonhole/m4/dovecot.m4 index 4964e2c..f59fcb9 100644 --- a/pigeonhole/m4/dovecot.m4 +++ b/pigeonhole/m4/dovecot.m4 @@ -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()] -- 2.30.2