Mercurial > hg > aboriginal
diff mini-native.sh @ 62:4125b672b00c
Get i686 cross-compiling to work like armv4l cross-compiling by lying to
the darn thing with different tuples. (The target is i686-unknown-linux-gnu
and the host is i686-walrus-linux-gnu.) Then it stops assuming it's not
cross compiling. (Remove residue from previous attempts to figure out how
to lie to gcc properly.)
Also make the work directory say $ARCH, so two architectures can build at
once in parallel.
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 25 Dec 2006 19:05:11 -0500 |
parents | 3fd961e31444 |
children | 89cf9497824e |
line wrap: on
line diff
--- a/mini-native.sh Mon Dec 25 16:31:51 2006 -0500 +++ b/mini-native.sh Mon Dec 25 19:05:11 2006 -0500 @@ -60,9 +60,10 @@ # Build and install native binutils setupfor binutils build-binutils -CC="${ARCH}"-gcc AR="${ARCH}"-ar "${CURSRC}/configure" --prefix="${TOOLS}" \ - --build="${CROSS_HOST}" --host=${CROSS_TARGET} --target=${CROSS_TARGET} \ - --disable-nls --disable-shared --disable-multilib $BINUTILS_FLAGS && +CC="${ARCH}-gcc" AR="${ARCH}-ar" "${CURSRC}/configure" --prefix="${TOOLS}" \ + --build="${CROSS_HOST}" --host="${CROSS_TARGET}" --target="${CROSS_TARGET}" \ + --disable-nls --disable-shared --disable-multilib --program-prefix= \ + $BINUTILS_FLAGS && make configure-host && make && make install && @@ -87,13 +88,12 @@ CC="${ARCH}-gcc" GCC_FOR_TARGET="${ARCH}-gcc" CC_FOR_TARGET="${ARCH}-gcc" \ AR="${ARCH}-ar" AR_FOR_TARGET="${ARCH}-ar" AS="${ARCH}-ar" LD="${ARCH}-ld" \ NM="${ARCH}-nm" NM_FOR_TARGET="${ARCH}-nm" \ - "${CURSRC}/configure" \ - --prefix="${TOOLS}" --disable-multilib \ + "${CURSRC}/configure" --prefix="${TOOLS}" --disable-multilib \ --build="${CROSS_HOST}" --host="${CROSS_TARGET}" --target="${CROSS_TARGET}" \ --enable-long-long --enable-c99 --enable-shared --enable-threads=posix \ --enable-__cxa_atexit --disable-nls --enable-languages=c,c++ \ - --disable-libstdcxx-pch && -make all-gcc && + --disable-libstdcxx-pch --program-prefix="" && +make all-gcc && make install-gcc && ln -s gcc "${TOOLS}/bin/cc" && cd .. &&