* add explicit check against mismatching version of legacy compiler, avoids

trying to build the compiler when it's not going to work


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38384 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Tappe 2010-08-27 00:57:11 +00:00
parent 3740f52dca
commit 540cbcd8e6

View File

@ -28,6 +28,14 @@ if [ ! -d $buildToolsDir ]; then
exit 1
fi
if ! grep "$haikuRequiredLegacyGCCVersion" \
$buildToolsDir/gcc/gcc/version.c >/dev/null 2>&1 ; then
echo "*** Mismatching compiler versions between configure script and" >&2
echo "*** $buildToolsDir/gcc/gcc/version.c" >&2
echo "*** Did you perhaps update only one of haiku & buildtools?" >&2
exit 1
fi
# create the output dir
mkdir -p $haikuOutputDir || exit 1
@ -139,7 +147,7 @@ sysIncludeDir=$installDir/i586-pc-haiku/sys-include
rm -rf $sysIncludeDir/be $sysIncludeDir/posix
# remove the objects dir
rm -rf $objDir
#rm -rf $objDir
echo "binutils and gcc for cross compilation have been built successfully!"