diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2020-08-07 23:47:40 -0700 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2020-08-07 23:47:40 -0700 |
commit | 1d4e461f9cd33a6e8e14d50b78a5e369e5c9cb6c (patch) | |
tree | 1c6698bc25f862ffd9b4fe961702f281b8b62644 | |
parent | Rebuild for wxgtk3 (diff) | |
download | 0ad-1d4e461f9cd33a6e8e14d50b78a5e369e5c9cb6c.tar.xz |
Rebuild
Fix notes on lto and OOM
-rw-r--r-- | PKGBUILD | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -9,7 +9,7 @@ pkgname=0ad pkgver=a23.1 _pkgver=0.0.23b-alpha -pkgrel=10 +pkgrel=11 pkgdesc="Cross-platform, 3D and historically-based real-time strategy game" arch=('x86_64') url="https://play0ad.com/" @@ -47,8 +47,9 @@ build() { CXXFLAGS+=' -DU_USING_ICU_NAMESPACE=1' # -fPIE and -pie break compilation - export CFLAGS="$CFLAGS -O3 -fstack-protector-all -flto=2 -fPIC" - export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all -flto=2 -fPIC" + # 0ad is prone to OOM, use 1 thread per 8GB ram + export CFLAGS="$CFLAGS -O3 -fstack-protector-all -flto=4 -fPIC" + export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all -flto=4 -fPIC" export SDL2_CONFIG="pkg-config sdl2" export WX_CONFIG="wx-config-gtk3" |