PKGBUILD: always set -fno-plt and -Wno-missing-profile

This commit is contained in:
Daniel Eklöf 2020-05-25 21:14:52 +02:00
parent 55f244601f
commit 4699ed343a
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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