changeset 1076:9a7b5e73e6ea

Don't set --build and --host for simple-cross binutils build.
author Rob Landley <rob@landley.net>
date Fri, 14 May 2010 04:13:31 -0500
parents 0fe8eda4f002
children 910785c683d5
files sources/sections/binutils.build
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/sources/sections/binutils.build	Fri May 14 01:57:22 2010 -0500
+++ b/sources/sections/binutils.build	Fri May 14 04:13:31 2010 -0500
@@ -2,8 +2,7 @@
 
 function configure_binutils()
 {
-  "$CURSRC/configure" --prefix="$STAGE_DIR" \
-    --build="$CROSS_HOST" --host="$FROM_HOST" --target="$CROSS_TARGET" \
+  "$CURSRC/configure" --prefix="$STAGE_DIR" "$@" --target="$CROSS_TARGET" \
     --disable-nls --disable-shared --disable-multilib --disable-werror \
     --with-lib-path=lib --program-prefix="$PROGRAM_PREFIX" $BINUTILS_FLAGS
 
@@ -25,7 +24,8 @@
   # existing host ($FROM_ARCH) _and_ target ($ARCH) cross compilers as
   # prerequisites.
 
-  AR="${FROM_ARCH}-ar" CC="${FROM_ARCH}-cc" configure_binutils
+  AR="${FROM_ARCH}-ar" CC="${FROM_ARCH}-cc" configure_binutils \
+    --build="$CROSS_HOST" --host="$FROM_HOST" 
 fi
 
 # Now that it's configured, build and install binutils