- get gcc version directly from installed gcc (so we can use gcc snapshots too)
This commit is contained in:
Stephan Raue 2010-05-27 03:36:27 +02:00
parent 6125612346
commit f828784d08

View File

@ -7,7 +7,7 @@ GCC_PKG_DIR=`find $PACKAGES -type d -name gcc`
make -C $PKG_BUILD install
if [ "$2" = toolchain ]; then
GCC_VERSION=`sed -n 's/.*\/gcc-\([0-9\.]*\)\..*/\1/p' $GCC_PKG_DIR/url`
GCC_VERSION=`$ROOT/$TOOLCHAIN/$TARGET_NAME/bin/gcc -dumpversion`
CROSS_CC=$TARGET_CC-$GCC_VERSION
rm -f $TARGET_CC
echo "#!/bin/sh" >$TARGET_CC