* Add an include/g++ symlink in the package. Apparently it isn't created by "make install" anymore. * Add the "current" symlink in the ".../tools" directory.
git-svn-id: file:///srv/svn/repos/haiku/buildtools/trunk@39406 a95241bf-73f2-0310-859d-f6bbb57e9c96
Diff
build-gcc4-optional-package-Haiku.sh | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
@@ -54,7 +54,9 @@
exit 1
fi
gccVersionedName=gcc-${gccVersion}-haiku-${gccDate}
gccArch=`uname -m`
case $gccArch in
@@ -64,7 +66,7 @@
installDir=/boot/develop/abi/$gccArch/gcc4/tools/gcc-${gccVersion}-haiku-${gccDate}
installDir=/boot/develop/abi/$gccArch/gcc4/tools/$gccVersionedName
if [ -e "$installDir" ]; then
echo "The installation directory '$installDir' does already exist." >&2
echo "Remove it first." >&2
@@ -115,8 +117,12 @@
rm -rf "$installDir/info" "$installDir/man" "$installDir/share" \
"$installDir/lib/libstdc++.so"
ln -s c++/$gccVersion $installDir/include/g++
gccVersionYear=20$(echo $GCCDATE | cut -c1-2)
gccVersionMonth=$(echo $GCCDATE | cut -c3-4)
@@ -125,6 +131,13 @@
cd /boot
zip -ry "$packageFile" `echo $installDir | cut -d/ -f3-`
cd "$buildDir"
mkdir -p develop/abi/x86/gcc4/tools/
ln -s $gccVersionedName develop/abi/x86/gcc4/tools/current
zip -y "$packageFile" develop/abi/x86/gcc4/tools/current