From 25e467bdea161879953e32144dc0a40994d06a5b Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sun, 2 Nov 2014 19:24:08 -0800 Subject: [PATCH] Check that -D_FORTIFY_SOURCE=2 doesn't trigger a compiler bug --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 6fd50fdb..45128eaf 100644 --- a/configure.ac +++ b/configure.ac @@ -135,7 +135,9 @@ dnl Checks AC_PROG_CC_C99 AM_PROG_AS AC_USE_SYSTEM_EXTENSIONS -CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2" + +AX_CHECK_COMPILE_FLAG([-D_FORTIFY_SOURCE=2], + [CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"]) AX_CHECK_COMPILE_FLAG([-fvisibility=hidden], [CFLAGS="$CFLAGS -fvisibility=hidden"])