# HG changeset patch # User Rob Landley # Date 1226089309 21600 # Node ID 2a308aa24aec78b088bf28250d44cff448d6ff2e # Parent e6259842abd5457305d9c440e9ecd66a45dac377 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". diff -r e6259842abd5 -r 2a308aa24aec mini-native.sh --- 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