aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-05-25 19:14:52 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-05-25 19:14:52 +0000
commit4699ed343a2f45e55e841a28ff2fe6d938026a31 (patch)
tree38eb87c7cfe69e3db26182fc5ba2f71223a9692c
parentPKGBUILD: append -O3 to makepkg provided CFLAGS (diff)
PKGBUILD: always set -fno-plt and -Wno-missing-profile
-rw-r--r--PKGBUILD6
1 files changed, 5 insertions, 1 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 4d571626..c3b0f929 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,7 +14,11 @@ pkgver() {
}
build() {
- export CFLAGS+=" -O3"
+ # 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=nofallback -Db_lto=true ..
if [[ -v WAYLAND_DISPLAY ]]; then