summaryrefslogtreecommitdiff
path: root/libraries/cryptopp/cryptopp.SlackBuild
diff options
context:
space:
mode:
authorponce <matteo.bernardini@gmail.com>2012-03-31 18:39:14 +0200
committerRobby Workman <rworkman@slackbuilds.org>2012-08-21 08:55:28 -0500
commit63ac2ff324096001f0e0ad141ccc2f003dce6295 (patch)
tree32144b3843417d8d58fa51dfe20909f081d40349 /libraries/cryptopp/cryptopp.SlackBuild
parent35f993d5a8a31c8abd46a0aaee2fb6c32d5e8f70 (diff)
downloadslackbuilds-63ac2ff324096001f0e0ad141ccc2f003dce6295.tar.gz
libraries/cryptopp: Added a patch for gcc-4.7.x.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
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 88572443ef..dbf7139117 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