Symlink libraries, strip ABI suffix

This exposes libs directly for plugins that may dynamically
load e.g. `libcurl.so` at runtime.
This commit is contained in:
Robin Gareus 2021-03-23 14:55:09 +01:00
parent 46d9a8d819
commit 5cd26221ce
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 11 additions and 0 deletions

View File

@ -634,6 +634,17 @@ elif test x$STRIP = xsome ; then
fi
find $APPLIB/ -name "*.so*" -print0 | xargs -0 chmod a+rx
# Remove ABI suffix, symlink *.so.
# This fixes plugins that dynamically open libs.
# e.g. JUCE option to lazily loading libcurl.so
(
cd $APPLIB/
for lib in *.so.[0-9]*; do
link=$(echo $lib | sed 's/\.[0-9]*$//')
ln -s $lib $link;
done
)
echo "Copying other stuff to $APPDIR ..."
# these are all generated by waf