aboutsummaryrefslogtreecommitdiff
path: root/libraries/cryptopp/cryptopp.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/cryptopp/cryptopp.SlackBuild')
-rw-r--r--libraries/cryptopp/cryptopp.SlackBuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/libraries/cryptopp/cryptopp.SlackBuild b/libraries/cryptopp/cryptopp.SlackBuild
index 88572443eff80..dbf713911711b 100644
--- a/libraries/cryptopp/cryptopp.SlackBuild
+++ b/libraries/cryptopp/cryptopp.SlackBuild
@@ -11,7 +11,7 @@
PRGNAM=cryptopp
VERSION=${VERSION:-5.6.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
@@ -64,6 +64,10 @@ 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
+# Fix gcc-4.7.x builds
+# https://lists.fedoraproject.org/pipermail/devel/2011-December/160723.html
+patch -p1 < $CWD/cryptopp-5.6.1-gcc-4.7.0.patch
+
make CFLAGS="$SLKCFLAGS" CXXFLAGS="$SLKCFLAGS"
make install PREFIX=$PKG/usr