diff options
| -rw-r--r-- | PKGBUILD | 7 | 
1 files changed, 6 insertions, 1 deletions
| @@ -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 | 
