diff --git a/sys-devel/avr_binutils/avr_binutils-2.24_2014_03_19.recipe b/sys-devel/avr_binutils/avr_binutils-2.24_2014_03_19.recipe index 710cc0a4c..d0c11395c 100644 --- a/sys-devel/avr_binutils/avr_binutils-2.24_2014_03_19.recipe +++ b/sys-devel/avr_binutils/avr_binutils-2.24_2014_03_19.recipe @@ -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"