restore -nostdlib for libgcc symbols tests

Commit 24f4e57c46 plugged leakage
of CFLAGS between individual tests, which broke test for libgcc
symbols. It needs -nostdlib which was set in previous test and
inherited before. Set it explicitly.
This commit is contained in:
Andrey Borzenkov 2013-11-16 17:03:20 +04:00
parent c2fdb33116
commit 31c0cd4362
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
* configure.ac: Restore -nostdlib for libgcc symbols tests.
2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
* docs/grub.texi (Environment): Document cmdpath.

View File

@ -815,9 +815,9 @@ LIBS="$TARGET_LIBGCC"
grub_ASM_USCORE
if test "x$TARGET_APPLE_LINKER" = x0 ; then
if test x$grub_cv_asm_uscore = xyes; then
CFLAGS="$TARGET_CFLAGS -Wl,--defsym,_abort=_main"
CFLAGS="$TARGET_CFLAGS -nostdlib -Wl,--defsym,_abort=_main"
else
CFLAGS="$TARGET_CFLAGS -Wl,--defsym,abort=main"
CFLAGS="$TARGET_CFLAGS -nostdlib -Wl,--defsym,abort=main"
fi
fi