* configure.ac: Do not CHECK_BSS_START_SYMBOL
and CHECK_END_SYMBOL if grub-emu is built. Unset TARGET_OBJ2ELF if grub-emu is built without module support.
This commit is contained in:
parent
f67dc308f6
commit
2aec1692d9
2 changed files with 18 additions and 5 deletions
|
@ -1,3 +1,10 @@
|
|||
2010-04-24 Christian Franke <franke@computer.org>
|
||||
|
||||
* configure.ac: Do not CHECK_BSS_START_SYMBOL
|
||||
and CHECK_END_SYMBOL if grub-emu is built.
|
||||
Unset TARGET_OBJ2ELF if grub-emu is built
|
||||
without module support.
|
||||
|
||||
2010-04-24 Jiro SEKIBA <jir@unicus.jp>
|
||||
|
||||
Nilfs2 support.
|
||||
|
|
16
configure.ac
16
configure.ac
|
@ -511,11 +511,11 @@ grub_PROG_OBJCOPY_ABSOLUTE
|
|||
fi
|
||||
grub_PROG_LD_BUILD_ID_NONE
|
||||
if test "x$target_cpu" = xi386; then
|
||||
if test ! -z "$TARGET_IMG_LDSCRIPT"; then
|
||||
# Check symbols provided by linker script.
|
||||
CFLAGS="$TARGET_CFLAGS -nostdlib ${TARGET_IMG_LDFLAGS_AC}8000,--defsym,___main=0x8100"
|
||||
fi
|
||||
if test "x$TARGET_APPLE_CC" != x1 ; then
|
||||
if test "$platform" != emu && test "x$TARGET_APPLE_CC" != x1 ; then
|
||||
if test ! -z "$TARGET_IMG_LDSCRIPT"; then
|
||||
# Check symbols provided by linker script.
|
||||
CFLAGS="$TARGET_CFLAGS -nostdlib ${TARGET_IMG_LDFLAGS_AC}8000 -Wl,--defsym,___main=0x8100"
|
||||
fi
|
||||
grub_CHECK_BSS_START_SYMBOL
|
||||
grub_CHECK_END_SYMBOL
|
||||
fi
|
||||
|
@ -635,6 +635,12 @@ else
|
|||
fi
|
||||
AC_SUBST(TARGET_NO_MODULES)
|
||||
|
||||
if test "$TARGET_NO_MODULES" = yes ; then
|
||||
# Do not convert modules, otherwise linkage may fail (Cygwin only).
|
||||
# FIXME: Should be checked above before TARGET_OBJ2ELF is set first.
|
||||
TARGET_OBJ2ELF=
|
||||
fi
|
||||
|
||||
if test x"$enable_grub_emu_usb" = xno ; then
|
||||
grub_emu_usb_excuse="explicitly disabled"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue