From 5cd26221cea991c7ad78b8bdc9573da15652a138 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 23 Mar 2021 14:55:09 +0100 Subject: [PATCH] Symlink libraries, strip ABI suffix This exposes libs directly for plugins that may dynamically load e.g. `libcurl.so` at runtime. --- tools/linux_packaging/build | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/linux_packaging/build b/tools/linux_packaging/build index 8d1c44ba36..73ecdbec3c 100755 --- a/tools/linux_packaging/build +++ b/tools/linux_packaging/build @@ -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