From e7fae306ff37e9fe8356834affb9a6e140c194e4 Mon Sep 17 00:00:00 2001 From: jc_gargma Date: Mon, 6 Jun 2022 17:01:47 -0700 Subject: Add !makeflags to prevent build failures with high thread counts. --- PKGBUILD | 3 +++ 1 file changed, 3 insertions(+) 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" -- cgit v1.2.1