From 63d6f6b68482fe8b68a43c293487b42d070f7aa2 Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Fri, 16 Apr 2021 23:37:22 -0500 Subject: [PATCH] Use relative symlinks to Elf2Mac Use relative rather than absolute symlinks to Elf2Mac. This helps things not break if the prefix is later moved. --- build-toolchain.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-toolchain.bash b/build-toolchain.bash index 6e37c72ef4..3a8ddbe19e 100755 --- a/build-toolchain.bash +++ b/build-toolchain.bash @@ -260,8 +260,8 @@ if [ $SKIP_THIRDPARTY != true ]; then # (Elf2Mac is built by cmake below) mv $PREFIX/bin/m68k-apple-macos-ld $PREFIX/bin/m68k-apple-macos-ld.real mv $PREFIX/m68k-apple-macos/bin/ld $PREFIX/m68k-apple-macos/bin/ld.real - ln -s $PREFIX/bin/Elf2Mac $PREFIX/bin/m68k-apple-macos-ld - ln -s $PREFIX/bin/Elf2Mac $PREFIX/m68k-apple-macos/bin/ld + ln -s Elf2Mac $PREFIX/bin/m68k-apple-macos-ld + ln -s ../../bin/Elf2Mac $PREFIX/m68k-apple-macos/bin/ld if [ $CLEAN_AFTER_BUILD != false ]; then rm -rf binutils-build