aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libraries/cryptopp/cryptopp.SlackBuild8
1 files changed, 3 insertions, 5 deletions
diff --git a/libraries/cryptopp/cryptopp.SlackBuild b/libraries/cryptopp/cryptopp.SlackBuild
index 8ef7d4bb8110f..179c2df479643 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