From ead0d7cfa29e14a326b5f367e064c9f4a765ebaf Mon Sep 17 00:00:00 2001 From: Markus Reichelt Date: Fri, 3 Oct 2014 08:21:43 +0700 Subject: libraries/cryptopp: Fix script. Signed-off-by: Willy Sudiarto Raharjo --- libraries/cryptopp/cryptopp.SlackBuild | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/libraries/cryptopp/cryptopp.SlackBuild b/libraries/cryptopp/cryptopp.SlackBuild index 8ef7d4bb81..179c2df479 100644 --- a/libraries/cryptopp/cryptopp.SlackBuild +++ b/libraries/cryptopp/cryptopp.SlackBuild @@ -7,7 +7,7 @@ PRGNAM=cryptopp VERSION=${VERSION:-5.6.2} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -55,11 +55,9 @@ find -L . \ # Fix Makefile to install correctly on x86_64. sed -i "s%(PREFIX)/lib%(PREFIX)/lib${LIBDIRSUFFIX}%g" GNUmakefile -# Fix Makefile to remove copying of non-existent *.so (else make install will fail) -sed -i "/*.so/d" GNUmakefile - -make CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS" +make dynamic CFLAGS="$SLKCFLAGS" CXXFLAGS="-DNDEBUG $SLKCFLAGS" make install PREFIX=$PKG/usr +ln -s libcryptopp.so $PKG/usr/lib${LIBDIRSUFFIX}/libcryptopp-${VERSION}.so.0 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 -- cgit v1.2.3