Mercurial > hg > aboriginal
changeset 716:ff2cd7c539b2
Make canadian cross work by nailing binutils files to gcc's forehead.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 18 Apr 2009 03:03:59 -0500 |
parents | eec1abee2a3b |
children | 5a3ebc77340c |
files | root-filesystem.sh |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 \