comparison 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
comparison
equal deleted inserted replaced
715:eec1abee2a3b 716:ff2cd7c539b2
143 mv .libs/libsupc++.a "$TOOLS"/lib && 143 mv .libs/libsupc++.a "$TOOLS"/lib &&
144 cd ../../../.. 144 cd ../../../..
145 145
146 cleanup gcc-core build-gcc 146 cleanup gcc-core build-gcc
147 147
148 # Move the gcc internal libraries and headers somewhere sane, and 148 # Move the gcc internal libraries and headers somewhere sane
149 # build and install gcc wrapper script.
150 149
151 mkdir -p "${TOOLS}"/gcc && 150 mkdir -p "${TOOLS}"/gcc &&
152 mv "${TOOLS}"/lib/gcc/*/*/include "${TOOLS}"/gcc/include && 151 mv "${TOOLS}"/lib/gcc/*/*/include "${TOOLS}"/gcc/include &&
153 mv "${TOOLS}"/lib/gcc/*/* "${TOOLS}"/gcc/lib && 152 mv "${TOOLS}"/lib/gcc/*/* "${TOOLS}"/gcc/lib &&
153
154 # Rub gcc's nose in the binutils output.
155 cd "${TOOLS}"/libexec/gcc/*/*/ &&
156 cp -s "../../../../$CROSS_TARGET/bin/"* . &&
157
158 # build and install gcc wrapper script.
154 mv "${TOOLS}/bin/${PROGRAM_PREFIX}gcc" "${TOOLS}/bin/${PROGRAM_PREFIX}rawgcc" && 159 mv "${TOOLS}/bin/${PROGRAM_PREFIX}gcc" "${TOOLS}/bin/${PROGRAM_PREFIX}rawgcc" &&
155 "${FROM_ARCH}-gcc" "${SOURCES}"/toys/ccwrap.c -Os -s \ 160 "${FROM_ARCH}-gcc" "${SOURCES}"/toys/ccwrap.c -Os -s \
156 -o "${TOOLS}/bin/${PROGRAM_PREFIX}gcc" -DGIMME_AN_S $STATIC_FLAGS \ 161 -o "${TOOLS}/bin/${PROGRAM_PREFIX}gcc" -DGIMME_AN_S $STATIC_FLAGS \
157 -DGCC_UNWRAPPED_NAME='"'"${PROGRAM_PREFIX}rawgcc"'"' && 162 -DGCC_UNWRAPPED_NAME='"'"${PROGRAM_PREFIX}rawgcc"'"' &&
158 163