summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2019-11-23 15:58:22 -0800
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2019-11-23 15:58:22 -0800
commit4c06d06e093facc159553214a8fbefb651c92ee9 (patch)
tree18f4a3ef36e008b30406745e8feaa35e39dd94a9
parentFix pkgrel (diff)
downloadfreeciv-qt-4c06d06e093facc159553214a8fbefb651c92ee9.tar.xz
More hardening
Added aarch64
-rw-r--r--PKGBUILD13
1 files changed, 7 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index e767682..4e210fe 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,15 +2,16 @@
# Maintainer (Arch): Eric BĂ©langer <eric@archlinux.org>
# # I maintain this because:
-# Community version uses gtk
-# Community version uses http
+# Arch version uses gtk
+# Arch version uses http
+# Arch version lacks additional optimization and hardening flags
_pkgname=freeciv
pkgname=freeciv-qt
pkgver=2.6.0
-pkgrel=3.2
+pkgrel=3.3
pkgdesc="A multiuser clone of the famous Microprose game of Civilization"
-arch=('x86_64')
+arch=('x86_64' 'aarch64')
url="https://www.freeciv.org/"
license=('GPL')
depends=('qt5-base' 'sdl2_mixer' 'lua' 'sqlite' 'curl')
@@ -23,8 +24,8 @@ sha1sums=('19b5181e3e9e40b31332c79a2226fbcc3706a9c2')
build() {
cd ${_pkgname}-${pkgver}
- export CFLAGS="$CFLAGS -O3 -flto=4"
- export CXXFLAGS="$CXXFLAGS -O3 -flto=4"
+ export CFLAGS="$CFLAGS -O3 -fstack-protector-all -flto=4 -fPIC"
+ export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all -flto=4 -fPIC"
./configure --prefix=/usr --sysconfdir=/etc --enable-shared --enable-sys-lua \
--enable-client=qt --enable-fcmp=qt --enable-fcdb=sqlite3 --enable-aimodules
make