Use relative symlinks to Elf2Mac

Use relative rather than absolute symlinks to Elf2Mac. This helps things
not break if the prefix is later moved.
This commit is contained in:
Ryan Schmidt 2021-04-16 23:37:22 -05:00 committed by GitHub
parent 6dda1160ab
commit 63d6f6b684
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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