From b4717d7dae9ebe42fb20afda1677c78fa3e38f7c Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Fri, 20 Apr 2018 20:16:26 +0700 Subject: [PATCH] cjs: Remove .la files. Signed-off-by: Willy Sudiarto Raharjo --- cjs/cjs.SlackBuild | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cjs/cjs.SlackBuild b/cjs/cjs.SlackBuild index 6aeca93..0b86bac 100644 --- a/cjs/cjs.SlackBuild +++ b/cjs/cjs.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=cjs VERSION=${VERSION:-3.6.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_csb} if [ -z "$ARCH" ]; then @@ -85,6 +85,9 @@ CXXFLAGS="$SLKCFLAGS" \ make make install DESTDIR=$PKG +# Don't ship .la files: +rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la + 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