From 4699ed343a2f45e55e841a28ff2fe6d938026a31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 25 May 2020 21:14:52 +0200 Subject: [PATCH] PKGBUILD: always set -fno-plt and -Wno-missing-profile --- PKGBUILD | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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