1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
From: =?utf-8?q?Christian_G=C3=B6ttsche?= <cgzones@googlemail.com>
Date: Thu, 22 Dec 2022 17:00:53 +0100
Subject: Use _FORTIFY_SOURCE level 3
Forwarded: not-needed
---
m4/dovecot.m4 | 6 +++---
pigeonhole/m4/dovecot.m4 | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
Index: dovecot/m4/dovecot.m4
===================================================================
--- dovecot.orig/m4/dovecot.m4
+++ dovecot/m4/dovecot.m4
@@ -9,7 +9,7 @@ dnl modifications, as long as this notic
# 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: dovecot/pigeonhole/m4/dovecot.m4
===================================================================
--- dovecot.orig/pigeonhole/m4/dovecot.m4
+++ dovecot/pigeonhole/m4/dovecot.m4
@@ -9,7 +9,7 @@ dnl modifications, as long as this notic
# 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()]
|