comparison sources/sections/binutils-gcc.sh @ 842:dee27a32b160

Fix static toolchain wrapping so distcc works with them too.
author Rob Landley <rob@landley.net>
date Sat, 10 Oct 2009 12:08:59 -0500
parents fc498452494a
children 96afbdffbf97
comparison
equal deleted inserted replaced
841:4952504f5c57 842:dee27a32b160
160 160
161 cd "$STAGE_DIR"/libexec/gcc/*/*/ && 161 cd "$STAGE_DIR"/libexec/gcc/*/*/ &&
162 cp -s "../../../../$CROSS_TARGET/bin/"* . && 162 cp -s "../../../../$CROSS_TARGET/bin/"* . &&
163 163
164 ln -s ${CROSS_TARGET} ${STAGE_DIR}/tools && 164 ln -s ${CROSS_TARGET} ${STAGE_DIR}/tools &&
165 ln -sf ../../../../tools/bin/ld ${STAGE_DIR}/libexec/gcc/*/*/collect2 && 165 ln -sf ../../../../tools/bin/ld ${STAGE_DIR}/libexec/gcc/*/*/collect2 || dienow
166
167 # These are allowed to fail, there for static toolchains that don't make 'em.
168
169 ln -s ../../bin/${PROGRAM_PREFIX}-rawgcc gcc 2>/dev/null
170 ln -s ../../bin/${PROGRAM_PREFIX}-rawgcc cc 2>/dev/null
171 ln -s ../../bin/${PROGRAM_PREFIX}-rawg++ g++ 2>/dev/null
172 ln -s ../../bin/${PROGRAM_PREFIX}-rawg++ c++ 2>/dev/null
166 173
167 # Wrap C++ too. 174 # Wrap C++ too.
168 175
169 mv "$STAGE_DIR/bin/${PROGRAM_PREFIX}"{g++,rawg++} && 176 mv "$STAGE_DIR/bin/${PROGRAM_PREFIX}"{g++,rawg++} &&
170 rm "$STAGE_DIR/bin/${PROGRAM_PREFIX}c++" && 177 rm "$STAGE_DIR/bin/${PROGRAM_PREFIX}c++" &&