From 5a815cc0c5f915b77350cfa1c90b5e89c39bcd2f Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Fri, 24 Mar 2023 09:32:45 +0100 Subject: [PATCH] configure: Raise FORTIFY_SOURCE level to 3 The present GCC supports level 3 for some time, try using it. --- configure | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 926a38cd0..f40bad7b4 100755 --- a/configure +++ b/configure @@ -5258,7 +5258,7 @@ else $as_nop # Otherwise use the Fortify enhancements to catch any unbounded # string operations... - CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2" + CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=3" fi diff --git a/configure.ac b/configure.ac index 31b4da3a2..40bffdb44 100644 --- a/configure.ac +++ b/configure.ac @@ -488,7 +488,7 @@ AS_IF([test -n "$GCC"], [ ], [ # Otherwise use the Fortify enhancements to catch any unbounded # string operations... - CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2" + CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=3" ]) dnl Show all standard warnings + unused variables when compiling...