From 959402208f557690939a310e6bb17e53a01c5a69 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Mon, 4 Jan 2021 14:11:25 +0100 Subject: [PATCH] override existing links at configure and install --- configure.sh | 8 ++++---- install.sh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/configure.sh b/configure.sh index d6c780c..027b21d 100755 --- a/configure.sh +++ b/configure.sh @@ -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 diff --git a/install.sh b/install.sh index 30b5c97..5b89e3d 100755 --- a/install.sh +++ b/install.sh @@ -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