diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD index 328e441..aeff335 100644 --- a/trunk/PKGBUILD +++ b/trunk/PKGBUILD @@ -9,22 +9,24 @@ pkgdesc="A network programming library written in C++" arch=('x86_64') url="https://github.com/apenwarr/wvstreams/" license=('LGPL') -depends=('zlib' 'pam' 'xplc' 'openssl' 'readline') +depends=('zlib' 'pam' 'openssl' 'readline') source=(https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/wvstreams/wvstreams-$pkgver.tar.gz wvstreams-4.6.1-glibc212.patch wvstreams-4.6.1-gcc47.patch wvstreams-4.6.1-gcc10.patch wvstreams_openssl1.1.patch openssl-buildfix.patch - gcc-6.patch) + gcc-6.patch + https://gitweb.gentoo.org/repo/gentoo.git/plain/net-libs/wvstreams/files/wvstreams-4.6.1-parallel-make.patch + ) sha256sums=('8403f5fbf83aa9ac0c6ce15d97fd85607488152aa84e007b7d0621b8ebc07633' '278c73140b963daa8aae85dfbba4917e2963e72c187bbb97b6252a5a70f54bc2' '7b83dad8e3931686962823a7008af0034a430f35e1eb617f5c8137141e14ccdd' '25aa17989936479a095837a354e0f0727f7a6fa393967a86f2e67e310a72e944' 'e1294644eb44c3d58789f2aca51fa28d15af799bd1b7bc2ff2583c41c74efae5' '57b55ed6a2a6aa8abef00711d9e03bed664f2c4357404cd38ae778f8b3b97482' - '1f750516825dc8c3ef7de980b90dadf22c5132eab828a5dd634fa2a88624b6d9') -options=('!makeflags') + '1f750516825dc8c3ef7de980b90dadf22c5132eab828a5dd634fa2a88624b6d9' + '488f265874ee4c5e722fd26a0c426c172fe4685f283cff11bfd53d8c7d74e299') prepare() { cd ${pkgname}-${pkgver} @@ -35,9 +37,13 @@ prepare() { patch -p1 -i "$srcdir/gcc-6.patch" patch -p1 -i "$srcdir/wvstreams-4.6.1-gcc10.patch" # Gentoo patch patch -p1 -i "$srcdir/wvstreams_openssl1.1.patch" # Debian patch + patch -p1 -i "$srcdir/wvstreams-4.6.1-parallel-make.patch" # Gentoo patch + sed -i 's/_BSD_SOURCE/_DEFAULT_SOURCE/' wvrules.mk } build() { + CXXFLAGS+=' -ffat-lto-objects' + CFLAGS+=' -ffat-lto-objects' cd ${pkgname}-${pkgver} ./configure --prefix=/usr \ @@ -49,7 +55,7 @@ build() { --with-openssl \ --without-tcl \ --without-qt - make COPTS="$CFLAGS -ffat-lto-objects -fPIC" CXXOPTS="$CXXFLAGS -ffat-lto-objects -fPIC -fpermissive -fno-tree-dce -fno-optimize-sibling-calls" VERBOSE=1 + make VERBOSE=1 } package() {