mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-23 15:49:23 +00:00
* configure.ac: Add -Wno-trampolines when supported.
This commit is contained in:
1 parent
d20a3b371c
commit
779dc15bf6
2 files changed
+18
No files matched your search
@@ -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>
|
2010-11-14 Modestas Vainius <modax@debian.org>
|
||||||
|
|
||||||
* grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
|
* grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
|
||||||
|
|||||||
@@ -668,6 +668,20 @@ if test x"$grub_cv_cc_isystem" = xyes ; then
|
|||||||
fi
|
fi
|
||||||
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.
|
# Restore the flags.
|
||||||
CC="$tmp_CC"
|
CC="$tmp_CC"
|
||||||
CFLAGS="$tmp_CFLAGS"
|
CFLAGS="$tmp_CFLAGS"
|
||||||
|
|||||||
Reference in new issue
Block a user