mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-07 07:35:02 -06:00
fix minor issues with rpath logic
This commit is contained in:
parent
69bc124930
commit
4f23f5505a
@ -61,7 +61,6 @@ mv RPCS3_.app RPCS3.app
|
|||||||
BIN="RPCS3.app/Contents/MacOS/rpcs3"
|
BIN="RPCS3.app/Contents/MacOS/rpcs3"
|
||||||
install_name_tool -delete_rpath /opt/homebrew/lib $BIN || true
|
install_name_tool -delete_rpath /opt/homebrew/lib $BIN || true
|
||||||
install_name_tool -delete_rpath /usr/local/lib $BIN || true
|
install_name_tool -delete_rpath /usr/local/lib $BIN || true
|
||||||
install_name_tool -add_rpath @executable_path/../Frameworks "$BIN" 2>/dev/null || true
|
|
||||||
|
|
||||||
# Fix dylib IDs
|
# Fix dylib IDs
|
||||||
for lib in RPCS3.app/Contents/Frameworks/*.dylib; do
|
for lib in RPCS3.app/Contents/Frameworks/*.dylib; do
|
||||||
@ -70,7 +69,7 @@ for lib in RPCS3.app/Contents/Frameworks/*.dylib; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Rewrite any hardcoded Homebrew paths to use @rpath
|
# Rewrite any hardcoded Homebrew paths to use @rpath
|
||||||
find "$BIN" -type f \( -perm +111 -o -name "*.dylib" \) | while read -r bin; do
|
find "RPCS3.app/Contents/" -type f \( -perm +111 -o -name "*.dylib" \) | while read -r bin; do
|
||||||
otool -L "$bin" | grep -E "/opt/homebrew|/usr/local" | awk '{print $1}' | while read -r dep; do
|
otool -L "$bin" | grep -E "/opt/homebrew|/usr/local" | awk '{print $1}' | while read -r dep; do
|
||||||
base=$(basename "$dep")
|
base=$(basename "$dep")
|
||||||
echo "Fixing $dep -> @rpath/$base in $bin"
|
echo "Fixing $dep -> @rpath/$base in $bin"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user