diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2022-09-03 17:46:14 -0700 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2022-09-03 17:46:14 -0700 |
commit | 4887c837d75ca443b9b290753eb5c59c214d1f04 (patch) | |
tree | 2483922055cfe966a264d76d6b801340e3dd0162 | |
parent | Rebuild against fmt 9 (diff) | |
download | 0ad-4887c837d75ca443b9b290753eb5c59c214d1f04.tar.xz |
Fix spidermonkey to use MAKEFLAGS for threads.
-rw-r--r-- | PKGBUILD | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -40,16 +40,19 @@ build() { # rust is prone to OOM, use 1 thread per 2GB ram #export MAKEFLAGS="-j32" - - # More threads - #sed -i 's/JOBS=${JOBS:="-j2"}/JOBS=${JOBS:="-j32"}/' update-workspaces.sh + + # Disable hardcoded extra threads on update-workspaces stage + sed -i 's/JOBS=${JOBS:="-j2"}/#JOBS=${JOBS:="-j2"}/' update-workspaces.sh + + # Set threads on update-workspaces stage to $MAKEFLAGS + export JOBS=${JOBS:="$MAKEFLAGS"} # -fPIE and -pie break compilation # -flto=auto and -flto=1 break compilation since a24.b export CFLAGS="$CFLAGS -O3 -fstack-protector-all -fPIC" export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all -fPIC" - ./update-workspaces.sh $MAKEFLAGS \ + ./update-workspaces.sh \ --without-pch \ --bindir=/usr/bin \ --libdir=/usr/lib/0ad \ |