From 437e6adcb4263d2d543c473b4a970113456750cc Mon Sep 17 00:00:00 2001 From: proski Date: Wed, 10 Jun 2009 18:32:13 +0000 Subject: [PATCH] 2009-06-10 Pavel Roskin * configure.ac: Use -nostdlib when probing for the target. It should not be required to have libc for the target. --- ChangeLog | 3 +++ configure.ac | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7b7d61962..bbc2262fe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2009-06-10 Pavel Roskin + * configure.ac: Use -nostdlib when probing for the target. It + should not be required to have libc for the target. + * configure.ac: Remove checks for __bswapsi2 and __bswapdi2, they fail without libc headers for the target. * include/grub/powerpc/libgcc.h: Use weak attribute for all diff --git a/configure.ac b/configure.ac index 8ece3592b..e29495a97 100644 --- a/configure.ac +++ b/configure.ac @@ -405,7 +405,7 @@ AC_SUBST(TARGET_LDFLAGS) # Set them to their new values for the tests below. CC="$TARGET_CC" -CFLAGS="$TARGET_CFLAGS" +CFLAGS="$TARGET_CFLAGS -nostdlib" CPPFLAGS="$TARGET_CPPFLAGS" LDFLAGS="$TARGET_LDFLAGS"