Mercurial > hg > aboriginal
diff mini-native.sh @ 456:2a308aa24aec
Make gcc stop putting stuff in a lib64 directory on x86-64 even when we --disable-multilib, and remove spurious uClibc warnings about trying to use the cross compiler to "make allnoconfig".
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 07 Nov 2008 14:21:49 -0600 |
parents | 61a26b8092bf |
children | 919121ba6c5c |
line wrap: on
line diff
--- a/mini-native.sh Fri Nov 07 14:20:12 2008 -0600 +++ b/mini-native.sh Fri Nov 07 14:21:49 2008 -0600 @@ -58,7 +58,7 @@ CONFIGFILE=miniconfig-uClibc BUILDIT="all install_runtime install_dev utils" fi -make KCONFIG_ALLCONFIG="${CONFIG_DIR}"/$CONFIGFILE allnoconfig && +make CROSS="${ARCH}=" KCONFIG_ALLCONFIG="${CONFIG_DIR}"/$CONFIGFILE allnoconfig && cp .config "${TOOLS}"/src/config-uClibc && make CROSS="${ARCH}-" KERNEL_HEADERS="${TOOLS}/include" PREFIX="${TOOLS}/" \ RUNTIME_PREFIX=/ DEVEL_PREFIX=/ UCLIBC_LDSO_NAME=ld-uClibc $BUILDIT && @@ -162,7 +162,10 @@ $GCC_FLAGS && make -j $CPUS configure-host && make -j $CPUS all-gcc && +# Work around gcc bug; we disabled multilib but it doesn't always notice. +ln -s lib "$TOOLS/lib64" && make -j $CPUS install-gcc && +rm "$TOOLS/lib64" && ln -s gcc "${TOOLS}/bin/cc" && # Now we need to beat libsupc++ out of gcc (which uClibc++ needs to build). # But don't want to build the whole of libstdc++-v3 because