Mercurial > hg > aboriginal
changeset 294:87df194d555d
Back to gcc 4.1.2 until I find a large enough rock to fix the soft-float thing.
author | Rob Landley <rob@landley.net> |
---|---|
date | Mon, 04 Feb 2008 04:48:26 -0600 |
parents | cdd26f8acc35 |
children | bbfb6e7bf7e6 |
files | cross-compiler.sh download.sh mini-native.sh |
diffstat | 3 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/cross-compiler.sh Sat Feb 02 00:28:36 2008 -0600 +++ b/cross-compiler.sh Mon Feb 04 04:48:26 2008 -0600 @@ -94,7 +94,6 @@ make CROSS= allnoconfig KCONFIG_ALLCONFIG="${WORK}"/miniconfig-uClibc && # Can't use -j here, build is unstable. make CROSS="${ARCH}-" KERNEL_HEADERS="${CROSS}/include" PREFIX="${CROSS}/" \ - UCLIBC_EXTRA_CFLAGS=-fgnu89-inline \ RUNTIME_PREFIX=/ DEVEL_PREFIX=/ all install_runtime install_dev && # "make utils" in uClibc is broken for cross compiling. Either it creates a # target binary (which you can't run on the host), or it tries to link the
--- a/download.sh Sat Feb 02 00:28:36 2008 -0600 +++ b/download.sh Mon Feb 04 04:48:26 2008 -0600 @@ -37,12 +37,12 @@ SHA1=a557686eef68362ea31a3aa41ce274e3eeae1ef0 \ download && -URL=ftp://ftp.gnu.org/gnu/gcc/gcc-4.2.2/gcc-core-4.2.2.tar.bz2 \ -SHA1=0bafb7e60432da2e5a0aad4424dde01c2a5c58bd \ +URL=ftp://ftp.gnu.org/gnu/gcc/gcc-4.1.2/gcc-core-4.1.2.tar.bz2 \ +SHA1=d6875295f6df1bec4a6f4ab8f0da54bfb8d97306 \ download && -URL=http://ftp.gnu.org/gnu/gcc/gcc-4.2.2/gcc-g++-4.2.2.tar.bz2 \ -SHA1=7a314c8b37e96365913d362d11c15996e573c31d \ +URL=http://ftp.gnu.org/gnu/gcc/gcc-4.1.2/gcc-g++-4.1.2.tar.bz2 \ +SHA1=e29c6e151050f8b5ac5d680b99483df522606143 \ download && URL=http://landley.net/code/toybox/downloads/toybox-0.0.4.tar.bz2 \
--- a/mini-native.sh Sat Feb 02 00:28:36 2008 -0600 +++ b/mini-native.sh Mon Feb 04 04:48:26 2008 -0600 @@ -38,7 +38,6 @@ # Can't use -j here, build is unstable. make CROSS="${ARCH}-" KERNEL_HEADERS="${TOOLS}/include" PREFIX="${TOOLS}/" \ RUNTIME_PREFIX=/ DEVEL_PREFIX=/ UCLIBC_LDSO_NAME=ld-uClibc \ - UCLIBC_EXTRA_CFLAGS=-fgnu89-inline \ all install_runtime install_dev utils && # utils_install wants to put stuff in usr/bin instead of bin. install -m 755 utils/{readelf,ldd,ldconfig} "${TOOLS}/bin" && @@ -94,14 +93,16 @@ sed -i 's@\./fixinc\.sh@-c true@' "${CURSRC}/gcc/Makefile.in" && # GCC has some deep assumptions about the name of the cross-compiler it should # be using. These assumptions are wrong, and lots of redundant corrections -# are required to make it stop. Or we can just bonk it on the head with "sed". -CC="${ARCH}-gcc" "${CURSRC}/configure" --prefix="${TOOLS}" --disable-multilib \ +# are required to make it stop. +CC="${ARCH}-gcc" GCC_FOR_TARGET="${ARCH}-gcc" CC_FOR_TARGET="${ARCH}-gcc" \ + AR="${ARCH}-ar" AR_FOR_TARGET="${ARCH}-ar" AS="${ARCH}-as" LD="${ARCH}-ld" \ + NM="${ARCH}-nm" NM_FOR_TARGET="${ARCH}-nm" \ + "${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 --program-prefix="" $GCC_FLAGS && make -j $CPUS configure-host && -find . -name "Makefile*" | xargs sed -ri "s/$CROSS_TARGET-(ar|as|nm|ranlib|gcc|cc|c++)/$ARCH-\1/p" && make -j $CPUS all-gcc && make -j $CPUS install-gcc && ln -s gcc "${TOOLS}/bin/cc" &&