aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2021-07-03 10:41:43 +0200
committerHeinz Wiesinger <pprkut@slackbuilds.org>2021-07-03 12:16:56 +0200
commit6d107bb4582c2b57bfce6aefe1b84f527c2f4946 (patch)
tree747cf417045acfd950ad864f7dfbf14153912f09
parenta9c2c432f5db4b6f616564fcc223d4a74e3af06e (diff)
cmake-template.SlackBuild: Don't ship .la files
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
-rw-r--r--cmake-template.SlackBuild3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake-template.SlackBuild b/cmake-template.SlackBuild
index 26d51ff..66f52f1 100644
--- a/cmake-template.SlackBuild
+++ b/cmake-template.SlackBuild
@@ -122,6 +122,9 @@ cd build
make install/strip DESTDIR=$PKG
cd ..
+# Don't ship .la files:
+rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
+
# Strip binaries and libraries - this can be done with 'make install-strip'
# in many source trees, and that's usually acceptable, if not, use this:
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \