diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2021-02-07 02:25:08 -0800 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2021-02-07 02:25:08 -0800 |
commit | 9c3fbf56e94658b67667256257d1cba9cb52775b (patch) | |
tree | d028d7907a2e529ab66b4b4487f04ba19097e5f1 | |
parent | Rebuild with notification support (diff) | |
download | qtox-9c3fbf56e94658b67667256257d1cba9cb52775b.tar.xz |
Fix lto
Add offline build toggle
-rw-r--r-- | PKGBUILD | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -8,6 +8,8 @@ # Artix version uses emoticons # Artix version uses incorrect gpg fingerprints +_offline=0 + pkgname=qtox _pkgname=qTox pkgver=1.17.3 @@ -58,8 +60,8 @@ build() { mkdir -p build cd build # gcc 10.2 + qt 5.15 + pie = segfault - export CFLAGS="$CFLAGS -O3 -fstack-protector-all -flto=4" - export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all -flto=4" + export CFLAGS="$CFLAGS -O3 -fstack-protector-all -flto=auto" + export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all -flto=auto" cmake .. -DCMAKE_INSTALL_PREFIX=/usr \ -DDESKTOP_NOTIFICATIONS=ON \ -DGIT_VERSION=$_gitver \ @@ -69,11 +71,13 @@ build() { } # tests require an active public internet connection +if [ "$_offline" == "0" ]; then check() { cd $_pkgname cd build make test } +fi package() { cd $_pkgname |