diff options
author | Markus Reichelt <slackbuilds@mareichelt.de> | 2014-10-03 08:21:43 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-10-03 10:17:03 +0700 |
commit | ead0d7cfa29e14a326b5f367e064c9f4a765ebaf (patch) | |
tree | bf64919e1f8302b0206e998d7c78c166f345cc95 /libraries | |
parent | 2234748620f1f808c5830971518f51a888dbc255 (diff) |
libraries/cryptopp: Fix script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/cryptopp/cryptopp.SlackBuild | 8 |
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 |