Mercurial > hg > aboriginal
diff root-filesystem.sh @ 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 | db04bd3c11e0 |
children | f0ede6d6c952 |
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 \