mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
26 lines
563 B
Bash
26 lines
563 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
PLATFORM=$(uname)
|
||
|
|
||
|
if [[ "$PLATFORM" == 'Linux' ]]; then
|
||
|
echo "[patch-static-vendor-libraries] patch Linux .so files..."
|
||
|
|
||
|
# update the RPATH so libraries in libs/ can discover each other,
|
||
|
# and plugins can discover themselves, and libs/ (but not the
|
||
|
# other way around)
|
||
|
|
||
|
FILES="./bin/lib/*"
|
||
|
for f in $FILES
|
||
|
do
|
||
|
patchelf --set-rpath "\$ORIGIN" "$f"
|
||
|
done
|
||
|
|
||
|
FILES="./bin/plugins/*.so"
|
||
|
for f in $FILES
|
||
|
do
|
||
|
patchelf --set-rpath "\$ORIGIN:\$ORIGIN/../lib" "$f"
|
||
|
done
|
||
|
|
||
|
chmod -x ./bin/lib/*
|
||
|
fi
|