* configure.ac: Add -Wno-trampolines when supported.
This commit is contained in:
parent
d20a3b371c
commit
779dc15bf6
2 changed files with 18 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* configure.ac: Add -Wno-trampolines when supported.
|
||||
|
||||
2010-11-14 Modestas Vainius <modax@debian.org>
|
||||
|
||||
* grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
|
||||
|
|
14
configure.ac
14
configure.ac
|
@ -668,6 +668,20 @@ if test x"$grub_cv_cc_isystem" = xyes ; then
|
|||
fi
|
||||
fi
|
||||
|
||||
AC_CACHE_CHECK([whether -Wno-trampolines work], [grub_cv_cc_wnotrampolines], [
|
||||
SAVED_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$TARGET_CFLAGS -Wno-trampolines"
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdarg.h>
|
||||
int va_arg_func (int fixed, va_list args);]], [[]])],
|
||||
[grub_cv_cc_wnotrampolines=yes],
|
||||
[grub_cv_cc_wnotrampolines=no])
|
||||
CFLAGS="$SAVED_CFLAGS"
|
||||
])
|
||||
|
||||
if test x"$grub_cv_cc_wnotrampolines" = xyes ; then
|
||||
TARGET_CFLAGS="$TARGET_CFLAGS -Wno-trampolines"
|
||||
fi
|
||||
|
||||
# Restore the flags.
|
||||
CC="$tmp_CC"
|
||||
CFLAGS="$tmp_CFLAGS"
|
||||
|
|
Loading…
Reference in a new issue