# HG changeset patch # User Rob Landley # Date 1240041839 18000 # Node ID ff2cd7c539b2dd94c21b2fe440f1643acb4948e5 # Parent eec1abee2a3b85597667fb18b402e05275a97cd1 Make canadian cross work by nailing binutils files to gcc's forehead. diff -r eec1abee2a3b -r ff2cd7c539b2 root-filesystem.sh --- a/root-filesystem.sh Fri Apr 17 06:37:16 2009 -0500 +++ b/root-filesystem.sh Sat Apr 18 03:03:59 2009 -0500 @@ -145,12 +145,17 @@ cleanup gcc-core build-gcc -# Move the gcc internal libraries and headers somewhere sane, and -# build and install gcc wrapper script. +# Move the gcc internal libraries and headers somewhere sane mkdir -p "${TOOLS}"/gcc && mv "${TOOLS}"/lib/gcc/*/*/include "${TOOLS}"/gcc/include && mv "${TOOLS}"/lib/gcc/*/* "${TOOLS}"/gcc/lib && + +# Rub gcc's nose in the binutils output. +cd "${TOOLS}"/libexec/gcc/*/*/ && +cp -s "../../../../$CROSS_TARGET/bin/"* . && + +# build and install gcc wrapper script. mv "${TOOLS}/bin/${PROGRAM_PREFIX}gcc" "${TOOLS}/bin/${PROGRAM_PREFIX}rawgcc" && "${FROM_ARCH}-gcc" "${SOURCES}"/toys/ccwrap.c -Os -s \ -o "${TOOLS}/bin/${PROGRAM_PREFIX}gcc" -DGIMME_AN_S $STATIC_FLAGS \