Merge pull request #1155 from manongjohn/fix_rpath_issues

Fix rpath in macOS packaged libraries
This commit is contained in:
manongjohn 2023-04-13 20:51:21 -04:00 committed by GitHub
commit 8861f5e46d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,10 +81,10 @@ $QTDIR/bin/macdeployqt $TOONZDIR/Tahoma2D.app -verbose=0 -always-overwrite \
-executable=$TOONZDIR/Tahoma2D.app/Contents/MacOS/tfarmserver -executable=$TOONZDIR/Tahoma2D.app/Contents/MacOS/tfarmserver
echo ">>> Correcting library paths" echo ">>> Correcting library paths"
for X in `find $TOONZDIR/Tahoma2D.app/Contents -type f '(' -name *.dylib -o -name *.so ')' -exec otool -l {} \; | grep -e "^toonz" -e"name \/usr\/local" | sed -e"s/://" -e"s/ (.*$//" -e"s/^ *name //"` for X in `find $TOONZDIR/Tahoma2D.app/Contents -type f '(' -name *.dylib -o -name *.so ')' -exec otool -l {} \; | grep -e "^toonz" -e"name \/usr\/local" -e"@rpath" | sed -e"s/://" -e"s/ (.*$//" -e"s/^ *name //"`
do do
Z=`echo $X | cut -c 1-1` Z=`echo $X | cut -c 1-1`
if [ "$Z" != "/" ] if [ "$Z" != "/" -a "$Z" != "@" ]
then then
LIBFILE=$X LIBFILE=$X
else else