summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2022-06-06 17:01:47 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2022-06-06 17:01:47 -0700
commite7fae306ff37e9fe8356834affb9a6e140c194e4 (patch)
tree2d02bc893626ff3020db248c6af1bb34d8cce99e
parentRebuild with pthread patches. (diff)
downloadsyncterm-master.tar.xz
Add !makeflags to prevent build failures with high thread counts.HEADmaster
-rw-r--r--PKGBUILD3
1 files changed, 3 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
index c6b8a24..3e439cd 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,6 +5,7 @@
# # I maintain this because:
# AUR version lacks additional optimization and hardening flags
+# AUR version lacks options=(!makeflags) to prevent build failures with high thread counts
pkgname=syncterm
pkgver=1.1
@@ -17,6 +18,7 @@ makedepends=('unzip')
optdepends=('hicolor-icon-theme: for GUI icon support'
'sdl2: for SDL GUI support'
'libx11: for X11 GUI support')
+options=(!makeflags)
arch=('i686' 'x86_64')
source=("https://downloads.sourceforge.net/project/syncterm/syncterm/$pkgname-$pkgver/$pkgname-$pkgver-src.tgz"
"cl-linux-yield.patch"
@@ -40,6 +42,7 @@ prepare() {
build() {
cd "$srcdir/$pkgname-${pkgver}/src/syncterm"
+ export MAKEFLAGS="-j1"
export CFLAGS="$CFLAGS -O3 -fstack-protector-all -flto=auto -fPIE"
export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all -flto=auto -fPIE"
export LDFLAGS="$LDFLAGS,-pie"