Skip to content

Commit

Permalink
Replace symlinks by hardlinks of external libraries for macOS
Browse files Browse the repository at this point in the history
This seems to be needed by XCode 11 and above
  • Loading branch information
th-otto committed Oct 31, 2019
1 parent 1554de0 commit 3c7c2c2
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .travis/install_prerequisities.sh
Expand Up @@ -83,6 +83,27 @@ osx)
curl --get https://packages.macports.org/$i --output $f
tar -C src/Unix/MacOSX/external --include="./opt/local" --strip-components=3 -xf $f
done
# replace symlinks; with XCode 11, only the symlinks will be copied
# to the application folder and can't be signed locally
cwd=`pwd`
cd src/Unix/MacOSX/external/lib
rm -f libjpeg.dylib
for i in .7 .8 .9; do
test -f libjpeg${i}.dylib && ln libjpeg${i}.dylib libjpeg.dylib
done
rm -f libgmp.dylib
for i in .10; do
test -f libgmp{$i}.dylib && ln libgmp{$i}.dylib libgmp.dylib
done
rm -f libgmpxx.dylib
for i in .4; do
test -f ln libgmpxx${i}.dylib && ln libgmpxx${i}.dylib libgmpxx.dylib
done
rm -f libmpfr.dylib
for i in .4; do
test -f ln libmpfr${i}.dylib && ln libmpfr${i}.dylib libmpfr.dylib
done
cd "$cwd"
;;

*)
Expand Down
6 changes: 6 additions & 0 deletions ChangeLog
@@ -1,3 +1,9 @@
2019/09/31
Replace symlinks by hardlinks of external libraries for macOS

This seems to be needed by XCode 11 and above


2019/09/31
Support extended OS header of EmuTOS

Expand Down

0 comments on commit 3c7c2c2

Please sign in to comment.