summaryrefslogtreecommitdiffstats
path: root/source/d/rust
diff options
context:
space:
mode:
Diffstat (limited to 'source/d/rust')
-rwxr-xr-xsource/d/rust/rust.SlackBuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/d/rust/rust.SlackBuild b/source/d/rust/rust.SlackBuild
index 950034c32..9e69dfb66 100755
--- a/source/d/rust/rust.SlackBuild
+++ b/source/d/rust/rust.SlackBuild
@@ -264,6 +264,10 @@ find $PKG/usr/lib$LIBDIRSUFFIX -name "*.so" -exec chmod 755 "{}" \+
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+# Get rid of a possible duplicated libLLVM. Not only is it large, but it also
+# throws an error at boot with ldconfig:
+rm -f $PKG/usr/lib${LIBDIRSUFFIX}/libLLVM-*.so.old
+
# Commented out (for now) since we disable rpaths in config.toml:
## Remove any compiled-in RPATHs:
#find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \