diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2020-10-20 13:12:36 -0700 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2020-10-20 13:12:36 -0700 |
commit | 7e508150476783fccb1fed87e33cb95262a80327 (patch) | |
tree | ba55100ba73ee50d9b4e3b1c7cced628a675f6e2 | |
parent | Rebuild due to the move of htmlcxx to community (diff) | |
download | lgogdownloader-7e508150476783fccb1fed87e33cb95262a80327.tar.xz |
Add hardening flags
Maintainer logic
-rwxr-xr-x | PKGBUILD | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -7,6 +7,7 @@ # AUR version uses http # AUR version uses unofficial repo # AUR version needlessly purges old build folder +# AUR version lacks additional optimization and hardening flags pkgname=lgogdownloader pkgver=3.7 @@ -28,6 +29,11 @@ prepare() { } build() { + + export CFLAGS="$CFLAGS -O3 -fstack-protector-all -flto=4 -fPIE" + export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all -flto=4 -fPIE" + export LDFLAGS="$LDFLAGS,-pie" + cd $srcdir/$pkgname-$pkgver/build make |