summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Eklöf2020-05-25 21:19:07 +0200
committerDaniel Eklöf2020-05-25 21:19:07 +0200
commit47190422f70d61ddf16a39830af04de8395829c4 (patch)
tree4e5ac8e74f300a4c288aa2b40a763dfdffd7db93
parent0fb80989fb7ed25b8459d02b0be545908c211791 (diff)
downloadaur-47190422f70d61ddf16a39830af04de8395829c4.tar.gz
Set "-O3 -fno-plt" explicitly
Adding -O3 works around a GCC 10.1 O2+PGO performance regression.
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD9
2 files changed, 8 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ed8419aa7b0..236278eac64 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = foot
pkgver = 1.3.0
- pkgrel = 1
+ pkgrel = 2
url = https://codeberg.org/dnkl/foot
arch = x86_64
license = mit
diff --git a/PKGBUILD b/PKGBUILD
index dc3d82f5b79..e83569ef33a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Daniel Eklöf <daniel at ekloef dot se>
pkgname=('foot' 'foot-terminfo')
pkgver=1.3.0
-pkgrel=1
+pkgrel=2
arch=('x86_64')
url=https://codeberg.org/dnkl/foot
license=(mit)
@@ -24,7 +24,12 @@ build() {
ln -sf ../../fcft .
popd
- meson --prefix=/usr --buildtype=release --wrap-mode=forcefallback -Db_lto=true -Dc_args="-Wno-missing-profile" . build
+ # makepkg uses -O2 by default, but we *really* want -O3
+ # -Wno-missing-profile since we're not exercising everything when doing PGO builds
+ # -fno-plt because performance (this is the default in makepkg anyway)
+ export CFLAGS+=" -O3 -Wno-missing-profile -fno-plt"
+
+ meson --prefix=/usr --buildtype=release --wrap-mode=forcefallback -Db_lto=true . build
if [[ -v WAYLAND_DISPLAY ]]; then
meson configure -Db_pgo=generate build