diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2021-07-29 18:56:27 -0700 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2021-07-29 18:56:27 -0700 |
commit | 1091f918b7939fd42b8fedb08777526348464e39 (patch) | |
tree | 08c33168d860c239e64d21928db67217ff7fc76c | |
parent | Rebuild for fixed make parameters (diff) | |
download | syncterm-1091f918b7939fd42b8fedb08777526348464e39.tar.xz |
Add optimizations
-rw-r--r-- | PKGBUILD | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 } |