Don't be bashistic.

This commit is contained in:
Linus Nordberg 2010-05-07 23:10:30 +02:00
parent 8ba00e4305
commit b7e533c1d7

View File

@ -98,9 +98,9 @@ AC_ARG_ENABLE(gcc-hardening,
AS_HELP_STRING(--enable-gcc-hardening, enable compiler security checks), AS_HELP_STRING(--enable-gcc-hardening, enable compiler security checks),
[if test x$enableval = xyes; then [if test x$enableval = xyes; then
CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all" CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2 -fstack-protector-all"
CFLAGS+=" -fwrapv -fPIE -Wstack-protector -Wformat -Wformat-security" CFLAGS="$CFLAGS -fwrapv -fPIE -Wstack-protector -Wformat -Wformat-security"
CFLAGS+=" -Wpointer-sign" CFLAGS="$CFLAGS -Wpointer-sign"
LDFLAGS+=" -pie" LDFLAGS="$LDFLAGS -pie"
fi]) fi])
dnl Linker hardening options dnl Linker hardening options
@ -108,7 +108,7 @@ dnl Currently these options are ELF specific - you can't use this with MacOSX
AC_ARG_ENABLE(linker-hardening, AC_ARG_ENABLE(linker-hardening,
AS_HELP_STRING(--enable-linker-hardening, enable linker security fixups), AS_HELP_STRING(--enable-linker-hardening, enable linker security fixups),
[if test x$enableval = xyes; then [if test x$enableval = xyes; then
LDFLAGS+=" -z relro -z now" LDFLAGS="$LDFLAGS -z relro -z now"
fi]) fi])
AC_ARG_ENABLE(local-appdata, AC_ARG_ENABLE(local-appdata,