override existing links at configure and install

This commit is contained in:
Lephenixnoir 2021-01-04 14:11:25 +01:00
parent 0400e3c470
commit 959402208f
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495
2 changed files with 5 additions and 5 deletions

View file

@ -40,10 +40,10 @@ PREFIX="$(pwd)"
# Symlink as, ld, ar and ranlib, which gcc will not find by itself (we renamed
# them from sh3eb-elf-* to sh-elf-* with --program-prefix).
mkdir -p sh3eb-elf/bin
ln -s $(command -v sh-elf-as) sh3eb-elf/bin/as
ln -s $(command -v sh-elf-ld) sh3eb-elf/bin/ld
ln -s $(command -v sh-elf-ar) sh3eb-elf/bin/ar
ln -s $(command -v sh-elf-ranlib) sh3eb-elf/bin/ranlib
ln -sf $(command -v sh-elf-as) sh3eb-elf/bin/as
ln -sf $(command -v sh-elf-ld) sh3eb-elf/bin/ld
ln -sf $(command -v sh-elf-ar) sh3eb-elf/bin/ar
ln -sf $(command -v sh-elf-ranlib) sh3eb-elf/bin/ranlib
cd build

View file

@ -12,7 +12,7 @@ cd ..
# Symbolic link executables to $PREFIX/bin
echo "$TAG Symlinking binaries..."
for x in bin/*; do
ln -s "$(pwd)/$x" "$PREFIX/$x"
ln -sf "$(pwd)/$x" "$PREFIX/$x"
done
# Cleanup build files