summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2022-06-15 15:31:22 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2022-06-15 15:31:22 -0700
commit5c29986459eee2769ad0901e417e307c4fc8c95d (patch)
tree573cd11e81e65b6f1637cb1021c63703d2c7ba8e
parentRebuild with glibc 2.35 patch (diff)
download0ad-5c29986459eee2769ad0901e417e307c4fc8c95d.tar.xz
Rebuild for boost 1.79
-rw-r--r--PKGBUILD9
1 files changed, 6 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 03881b1..71c50c8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,7 @@
pkgname=0ad
pkgver=a25.b
_pkgver=0.0.25b-alpha
-pkgrel=4
+pkgrel=5
pkgdesc="Cross-platform, 3D and historically-based real-time strategy game"
arch=('x86_64')
url="https://play0ad.com/"
@@ -17,7 +17,7 @@ license=('GPL2' 'CCPL')
depends=('0ad-data' 'binutils' 'boost-libs' 'curl' 'enet' 'libogg' 'libpng' 'libvorbis'
'libxml2' 'openal' 'sdl2' 'wxgtk3' 'zlib' 'libgl' 'glu' 'fmt'
'gloox' 'miniupnpc' 'libminiupnpc.so' 'icu' 'nspr' 'libsodium')
-makedepends=('boost' 'cmake' 'mesa' 'zip' 'libsm' 'rust' 'python')
+makedepends=('boost' 'cmake' 'mesa' 'zip' 'libsm' 'rust' 'python' 'clang')
options=('!lto') # breaks spidermonkey linking (https://bugs.gentoo.org/746947)
source=("https://releases.wildfiregames.com/$pkgname-$_pkgver-unix-build.tar.xz"
"glibc-2.35.patch"
@@ -38,8 +38,11 @@ prepare() {
build() {
cd "$pkgname-$_pkgver/build/workspaces"
+ # Work around GCC 12 ICE (https://bugs.gentoo.org/847601)
+ export CC=clang CXX=clang++
+
# rust is prone to OOM, use 1 thread per 2GB ram
- export MAKEFLAGS="-j32"
+ #export MAKEFLAGS="-j32"
# More threads
#sed -i 's/JOBS=${JOBS:="-j2"}/JOBS=${JOBS:="-j32"}/' update-workspaces.sh