summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2019-09-26 18:37:47 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2019-09-26 18:37:47 -0700
commitb89666bb773f751b3ec59b440e85d09dc5e25773 (patch)
tree7ecbec055f770b0c84835d7091992c4c0410c669
parentChange url to https (diff)
downloadresidualvm-b89666bb773f751b3ec59b440e85d09dc5e25773.tar.xz
Add hardened and optimization flags
-rw-r--r--PKGBUILD7
1 files changed, 6 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 7842a1b..250694a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,10 +4,11 @@
# # I maintain this because:
# AUR version doesn't cd to the correct subdirectory
+# Arch version lacks additional optimization and hardening flags
pkgname=residualvm
pkgver=0.3.1
-pkgrel=4
+pkgrel=4.2
pkgdesc="A cross-platform 3D game interpreter for LucasArts LUA-based 3D adventures"
arch=('x86_64')
license=('LGPL')
@@ -20,6 +21,10 @@ sha256sums=('515b02129dd374bc9c0b732ddeaaaa3a342cc25ea0ea3c4ccf19141b5d362e1d')
build() {
cd "${srcdir}/$pkgname-$pkgver"
+ # -flto=4 breaks compilation
+ export CFLAGS="$CFLAGS -O3 -fPIE"
+ export CXXFLAGS="$CXXFLAGS -O3 -fPIE"
+ export LDFLAGS="$LDFLAGS,-pie"
./configure --disable-debug \
--enable-release \
--prefix=/usr