]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
restore -nostdlib for libgcc symbols tests
authorAndrey Borzenkov <arvidjaar@gmail.com>
Sat, 16 Nov 2013 13:03:20 +0000 (17:03 +0400)
committerAndrey Borzenkov <arvidjaar@gmail.com>
Sat, 16 Nov 2013 13:03:20 +0000 (17:03 +0400)
Commit 24f4e57c4684471da088c504dec0380886eece0c 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.

ChangeLog
configure.ac

index a74265abf9abc6e5cea4ff0e5ce7dfd19b26a8c4..f8bcd188df83ecff4eb6cd1142c533779e963125 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 2c4f019f61abd3bec3fe20c3af92b687c6ea7d60..18429103b55583c5d5518aae0bb6d82e13d79745 100644 (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