summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2021-07-29 18:56:27 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2021-07-29 18:56:27 -0700
commit1091f918b7939fd42b8fedb08777526348464e39 (patch)
tree08c33168d860c239e64d21928db67217ff7fc76c
parentRebuild for fixed make parameters (diff)
downloadsyncterm-1091f918b7939fd42b8fedb08777526348464e39.tar.xz
Add optimizations
-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
}