@@ -2503,23 +2503,24 @@ AS_VAR_IF([with_strict_overflow], [yes],
2503
2503
AC_MSG_CHECKING ( [ for --disable-safety] )
2504
2504
AC_ARG_ENABLE ( [ safety] ,
2505
2505
[ AS_HELP_STRING ( [ --disable-safety] , [ disable usage of the security compiler options with no performance overhead] ) ] ,
2506
- [ AS_VAR_IF ( [ enable_safety] , [ yes] , [ disable_safety=no] , [ disable_saftey =yes] ) ] , [ disable_saftey =no] )
2506
+ [ AS_VAR_IF ( [ enable_safety] , [ yes] , [ disable_safety=no] , [ disable_safety =yes] ) ] , [ disable_safety =no] )
2507
2507
AC_MSG_RESULT ( [ $disable_safety] )
2508
2508
2509
2509
if test "$disable_safety" = "no"
2510
2510
then
2511
- AX_CHECK_COMPILE_FLAG ( [ -fstack-protector-strong] , [ BASECFLAGS ="$BASECFLAGS -fstack-protector-strong"] , [ AC_MSG_WARN ( [ -fstack-protector-strong not supported] ) ] , [ -Werror] )
2512
- AX_CHECK_COMPILE_FLAG ( [ -Wtrampolines] , [ BASECFLAGS ="$BASECFLAGS -Wtrampolines"] , [ AC_MSG_WARN ( [ -Wtrampolines not supported] ) ] , [ -Werror] )
2511
+ AX_CHECK_COMPILE_FLAG ( [ -fstack-protector-strong] , [ CFLAGS_NODIST ="$CFLAGS_NODIST -fstack-protector-strong"] , [ AC_MSG_WARN ( [ -fstack-protector-strong not supported] ) ] , [ -Werror] )
2512
+ AX_CHECK_COMPILE_FLAG ( [ -Wtrampolines] , [ CFLAGS_NODIST ="$CFLAGS_NODIST -Wtrampolines"] , [ AC_MSG_WARN ( [ -Wtrampolines not supported] ) ] , [ -Werror] )
2513
2513
fi
2514
2514
2515
2515
AC_MSG_CHECKING ( [ for --enable-slower-safety] )
2516
2516
AC_ARG_ENABLE ( [ slower-safety] ,
2517
- [ AS_HELP_STRING ( [ --enable-slower-safety] , [ enable usage of the security compiler options with performance overhead] ) ] ,[ ] )
2517
+ [ AS_HELP_STRING ( [ --enable-slower-safety] , [ enable usage of the security compiler options with performance overhead] ) ] ,
2518
+ [ AS_VAR_IF ( [ disable_slower_safety] , [ yes] , [ enable_slower_safety=no] , [ enable_slower_safety=yes] ) ] , [ enable_slower_safety=no] )
2518
2519
AC_MSG_RESULT ( [ $enable_slower_safety] )
2519
2520
2520
2521
if test "$enable_slower_safety" = "yes"
2521
2522
then
2522
- AX_CHECK_COMPILE_FLAG ( [ -D_FORTIFY_SOURCE=3] , [ BASECFLAGS ="$BASECFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3"] , [ AC_MSG_WARN ( [ -D_FORTIFY_SOURCE=3 not supported] ) ] , [ -Werror] )
2523
+ AX_CHECK_COMPILE_FLAG ( [ -D_FORTIFY_SOURCE=3] , [ CFLAGS_NODIST ="$CFLAGS_NODIST -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3"] , [ AC_MSG_WARN ( [ -D_FORTIFY_SOURCE=3 not supported] ) ] , [ -Werror] )
2523
2524
fi
2524
2525
2525
2526
case $GCC in
0 commit comments