comparison sources/sections/binutils.build @ 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 c6b3d648ead6
children affef1edbdba
comparison
equal deleted inserted replaced
1075:0fe8eda4f002 1076:9a7b5e73e6ea
1 # Build binutils, which provides the linker and assembler and such. 1 # Build binutils, which provides the linker and assembler and such.
2 2
3 function configure_binutils() 3 function configure_binutils()
4 { 4 {
5 "$CURSRC/configure" --prefix="$STAGE_DIR" \ 5 "$CURSRC/configure" --prefix="$STAGE_DIR" "$@" --target="$CROSS_TARGET" \
6 --build="$CROSS_HOST" --host="$FROM_HOST" --target="$CROSS_TARGET" \
7 --disable-nls --disable-shared --disable-multilib --disable-werror \ 6 --disable-nls --disable-shared --disable-multilib --disable-werror \
8 --with-lib-path=lib --program-prefix="$PROGRAM_PREFIX" $BINUTILS_FLAGS 7 --with-lib-path=lib --program-prefix="$PROGRAM_PREFIX" $BINUTILS_FLAGS
9 8
10 [ $? -ne 0 ] && dienow 9 [ $? -ne 0 ] && dienow
11 } 10 }
23 # on $FROM_ARCH as its host, and build executables for $ARCH as its target. 22 # on $FROM_ARCH as its host, and build executables for $ARCH as its target.
24 # (Use host==target to produce a native compiler.) Doing this requires 23 # (Use host==target to produce a native compiler.) Doing this requires
25 # existing host ($FROM_ARCH) _and_ target ($ARCH) cross compilers as 24 # existing host ($FROM_ARCH) _and_ target ($ARCH) cross compilers as
26 # prerequisites. 25 # prerequisites.
27 26
28 AR="${FROM_ARCH}-ar" CC="${FROM_ARCH}-cc" configure_binutils 27 AR="${FROM_ARCH}-ar" CC="${FROM_ARCH}-cc" configure_binutils \
28 --build="$CROSS_HOST" --host="$FROM_HOST"
29 fi 29 fi
30 30
31 # Now that it's configured, build and install binutils 31 # Now that it's configured, build and install binutils
32 32
33 make -j $CPUS configure-host && 33 make -j $CPUS configure-host &&