Revision: 2642
http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2642
Author: robertmh
Date: 2009-10-20 11:30:37 +0000 (Tue, 20 Oct 2009)
Log Message:
-----------
2009-10-20 Robert Millan <[email protected]>
Fix build on sparc64.
* configure.ac: Perform checks for libgcc symbols before
adding `-nostdlib' to LDFLAGS.
Modified Paths:
--------------
trunk/grub2/ChangeLog
trunk/grub2/configure.ac
Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog 2009-10-16 20:21:12 UTC (rev 2641)
+++ trunk/grub2/ChangeLog 2009-10-20 11:30:37 UTC (rev 2642)
@@ -1,3 +1,10 @@
+2009-10-20 Robert Millan <[email protected]>
+
+ Fix build on sparc64.
+
+ * configure.ac: Perform checks for libgcc symbols before
+ adding `-nostdlib' to LDFLAGS.
+
2009-10-16 Vladimir Serbinenko <[email protected]>
Let user specify OpenBSD root device.
Modified: trunk/grub2/configure.ac
===================================================================
--- trunk/grub2/configure.ac 2009-10-16 20:21:12 UTC (rev 2641)
+++ trunk/grub2/configure.ac 2009-10-20 11:30:37 UTC (rev 2642)
@@ -411,6 +411,9 @@
AC_SUBST(TARGET_CPPFLAGS)
AC_SUBST(TARGET_LDFLAGS)
+# Check for libgcc symbols (must be performed before we add -nostdlib to
LDFLAGS)
+AC_CHECK_FUNCS(__bswapsi2 __bswapdi2)
+
# Set them to their new values for the tests below.
CC="$TARGET_CC"
if test "x$TARGET_APPLE_CC" = x1 ; then
@@ -421,9 +424,6 @@
CPPFLAGS="$TARGET_CPPFLAGS"
LDFLAGS="$TARGET_LDFLAGS"
-# Check for target functions.
-AC_CHECK_FUNCS(__bswapsi2 __bswapdi2)
-
# Defined in aclocal.m4.
grub_PROG_TARGET_CC
if test "x$TARGET_APPLE_CC" != x1 ; then