summaryrefslogtreecommitdiff
path: root/extra/crypto++/PKGBUILD
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-04-21 17:08:01 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2012-04-21 17:08:01 +0200
commit9c2097ac3c4176a84248d9d94cac244c6d14e885 (patch)
treeecea54474d07301f7356a181eab86abce49ce6ee /extra/crypto++/PKGBUILD
parent564593462ea4dd96fbe4842469b7a0da920a13f2 (diff)
Fix building crypto++.
Diffstat (limited to 'extra/crypto++/PKGBUILD')
-rw-r--r--extra/crypto++/PKGBUILD10
1 files changed, 4 insertions, 6 deletions
diff --git a/extra/crypto++/PKGBUILD b/extra/crypto++/PKGBUILD
index 198137f1f..aefbae61b 100644
--- a/extra/crypto++/PKGBUILD
+++ b/extra/crypto++/PKGBUILD
@@ -27,15 +27,13 @@ md5sums=('96cbeba0907562b077e26bcffb483828'
build() {
cd ${srcdir}
-# cp "${srcdir}/GNUmakefile.parabola" GNUmakefile
-# make -f GNUmakefile
-
# Fix gcc 4.7 build
patch -Np1 -i "${srcdir}/gcc4.7.patch"
- sed -i -e 's/^CXXFLAGS/#CXXFLAGS/' GNUmakefile
- export CXXFLAGS="${CXXFLAGS} -DNDEBUG -fPIC"
- make -f GNUmakefile
+ # The upstream build system expects this file to be modified
+ # to e.g. use system CFLAGS or use features of modern linkers.
+ cp "${srcdir}/GNUmakefile.parabola" GNUmakefile
+ make -f GNUmakefile
make libcryptopp.so
}