Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2022-03-26 10:56:30 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2022-03-26 10:56:30 +0100
commitd565dba6363eb9dd30b20facec104fc304dd6805 (patch)
treeb1e1607eb44a2c6ab00ecc357b0334df9b14d342
parent9fbc33d66b2091b112e634730c43ca60ad4e9333 (diff)
extra/meson: disabled default LTO for i486 (b_lto)
-rw-r--r--extra/meson/PKGBUILD13
1 files changed, 13 insertions, 0 deletions
diff --git a/extra/meson/PKGBUILD b/extra/meson/PKGBUILD
index 0f009bb1..74cfa56b 100644
--- a/extra/meson/PKGBUILD
+++ b/extra/meson/PKGBUILD
@@ -16,3 +16,16 @@ checkdepends_pentium4=("${checkdepends_i686[@]}")
# still far too many tests fail, ignoring for now
unset check
unset checkdepends
+
+# do not set b_lto to true in arch-meson wrapper on i486
+if [ "${CARCH}" = "i486" ]; then
+ eval "$(
+ {
+ declare -f package || \
+ printf 'package() {\n}\n'
+ } \
+ | sed '
+ $i sed -i "s/b_lto=.*/b_lto=false/" "$pkgdir/usr/bin/arch-meson"
+ '
+ )"
+fi