2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
* aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition. * configure.ac: Use it for testing the HOST and TARGET compilers.
This commit is contained in:
parent
fd3e4ea524
commit
baa2a121e0
3 changed files with 49 additions and 0 deletions
25
configure.ac
25
configure.ac
|
@ -148,6 +148,19 @@ fi
|
|||
# Check for functions.
|
||||
AC_CHECK_FUNCS(posix_memalign memalign)
|
||||
|
||||
#
|
||||
# Compiler features.
|
||||
#
|
||||
|
||||
# Smashing stack protector.
|
||||
grub_CHECK_STACK_PROTECTOR
|
||||
[# Need that, because some distributions ship compilers that include
|
||||
# `-fstack-protector' in the default specs.
|
||||
if [ x"$ssp_possible" = xyes ]; then
|
||||
CFLAGS=$CFLAGS\ -fno-stack-protector
|
||||
fi]
|
||||
|
||||
|
||||
#
|
||||
# Check for target programs.
|
||||
#
|
||||
|
@ -225,6 +238,18 @@ if test "x$target_m32" = x1; then
|
|||
TARGET_LDFLAGS="$TARGET_LDFLAGS -m32"
|
||||
fi
|
||||
|
||||
#
|
||||
# Compiler features.
|
||||
#
|
||||
|
||||
# Smashing stack protector.
|
||||
grub_CHECK_STACK_PROTECTOR
|
||||
[# Need that, because some distributions ship compilers that include
|
||||
# `-fstack-protector' in the default specs.
|
||||
if [ x"$ssp_possible" = xyes ]; then
|
||||
TARGET_CFLAGS=$TARGET_CFLAGS\ -fno-stack-protector
|
||||
fi]
|
||||
|
||||
AC_SUBST(TARGET_CFLAGS)
|
||||
AC_SUBST(TARGET_CPPFLAGS)
|
||||
AC_SUBST(TARGET_LDFLAGS)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue