summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--PKGBUILD8
1 files changed, 7 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 1cbecef..96af2bf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,10 +6,11 @@
# AUR version uses http
# AUR version uses epoch
# AUR version has excessive cd commands
+# AUR version lacks additional optimization and hardening flags
pkgname=syncterm
pkgver=1.1
-pkgrel=3
+pkgrel=3.2
pkgdesc="A BBS terminal program, Supports ANSI music and the IBM charset when possible."
url="http://syncterm.bbsdev.net"
license=('GPL')
@@ -23,6 +24,11 @@ b2sums=('91043a31374d73d29a447ab425007aad95ee7d22ded3ea4a518c1fa05958b5f20a4a83d
build() {
cd "$srcdir/$pkgname-${pkgver}/src/syncterm/"
+
+ export CFLAGS="$CFLAGS -O3 -fstack-protector-all -flto=auto -fPIE"
+ export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all -flto=auto -fPIE"
+ export LDFLAGS="$LDFLAGS,-pie"
+
make MANPREFIX="$pkgdir/usr/share" SRC_ROOT="$(realpath ..)" PREFIX="/usr" RELEASE=1 || true
}