From d565dba6363eb9dd30b20facec104fc304dd6805 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 26 Mar 2022 10:56:30 +0100 Subject: extra/meson: disabled default LTO for i486 (b_lto) --- extra/meson/PKGBUILD | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 -- cgit v1.2.3-70-g09d2