Check that -D_FORTIFY_SOURCE=2 doesn't trigger a compiler bug

This commit is contained in:
Frank Denis 2014-11-02 19:24:08 -08:00
parent 63ee1abf82
commit 25e467bdea

View File

@ -135,7 +135,9 @@ dnl Checks
AC_PROG_CC_C99 AC_PROG_CC_C99
AM_PROG_AS AM_PROG_AS
AC_USE_SYSTEM_EXTENSIONS 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], AX_CHECK_COMPILE_FLAG([-fvisibility=hidden],
[CFLAGS="$CFLAGS -fvisibility=hidden"]) [CFLAGS="$CFLAGS -fvisibility=hidden"])