avr binutils: point symlinks the proper way.

This commit is contained in:
Adrien Destugues
2014-05-11 22:12:42 +02:00
parent 04a6a8c9ad
commit fe1e7cd908

View File

@@ -70,7 +70,7 @@ SOURCE_DIR="buildtools-$srcGitRev/binutils"
BUILD_PACKAGE_ACTIVATION_PHASE=INSTALL
sourceDir=$(pwd)
relativeInstallDir="develop/tools$secondaryArchSubDir"
relativeInstallDir="develop/tools/avr"
installDir="$prefix/$relativeInstallDir"
objectsDir=$(pwd)/../${portVersionedName}-obj
@@ -108,6 +108,16 @@ INSTALL()
strip --strip-debug $binDir/*
### Symlinks ##############################################
echo "Creating required symlinks"
# There are copies of a subset of the commands below installDir. We
# overwrite those with symlinks to the ones in binDir.
for file in $installDir/avr/bin/*; do
symlinkRelative -sfn $binDir/avr-$(basename $file) $file
done
### Cleanup #################################################
echo "Cleanup"