diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2019-10-11 14:45:37 -0700 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2019-10-11 14:45:37 -0700 |
commit | 19b53cbc736213534a5f925da6c404a6ecd0e1fc (patch) | |
tree | 3c3616510d6e38f117bd1f8b59203cc966241c28 | |
parent | Fix pkgrel (diff) | |
download | keepassxc-19b53cbc736213534a5f925da6c404a6ecd0e1fc.tar.xz |
Fix custom CFLAGS
-rw-r--r-- | PKGBUILD | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -6,10 +6,11 @@ # Arch version uses yubikey libs # Arch version enables networking support # Arch version enables update check +# Arch version lacks additional optimization and hardening flags pkgname=keepassxc pkgver=2.4.3 -pkgrel=1.2 +pkgrel=1.3 pkgdesc="Cross-platform community-driven port of Keepass password manager" arch=(x86_64) url="https://keepassxc.org/" @@ -31,8 +32,11 @@ prepare() { build() { cd build - export CFLAGS="$CFLAGS -O3 -fstack-protector-all -fno-lto" - export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all -fno-lto" + # lto breaks compiling + # PIE cause the tests to fail + export CFLAGS="$CFLAGS -O3 -fstack-protector-all" + export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all" + cmake ../$pkgname-$pkgver \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ |