replace if with AS_IF (#5709, wip)
This commit is contained in:
parent
bc29ca4080
commit
652659a8d4
@ -431,12 +431,11 @@ AC_DEFINE_UNQUOTED([HAVE_DEVELOPER],[$enable_dev],[1 if developer logic is enabl
|
||||
# -D_FORTIFY_SOURCE=2 -fstack-protector-all
|
||||
AC_ARG_ENABLE(gcc-hardening,
|
||||
AS_HELP_STRING(--enable-gcc-hardening, enable compiler security checks),
|
||||
[if test x$enableval = xyes; then
|
||||
[AS_IF([test x$enableval = xyes],[
|
||||
CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fstack-protector-all"
|
||||
CFLAGS="$CFLAGS -fwrapv -fPIE -Wstack-protector"
|
||||
CFLAGS="$CFLAGS --param ssp-buffer-size=1"
|
||||
LDFLAGS="$LDFLAGS -pie"
|
||||
fi])
|
||||
LDFLAGS="$LDFLAGS -pie"])])
|
||||
|
||||
|
||||
# Linker hardening options
|
||||
|
Loading…
Reference in New Issue
Block a user