summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2021-09-30 09:17:30 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2021-09-30 09:17:30 +0200
commit430b7b0133da451a81d400a6a751f45b382ba300 (patch)
tree02784e6d0c7eeba1985e27c3f4a421480a14c35d /extra
parenta8aa9f21dcd9914b68454562dae16cdf82ce028f (diff)
downloadpackages-430b7b0133da451a81d400a6a751f45b382ba300.tar.xz
extra/mesa: disable LTO on i486
Diffstat (limited to 'extra')
-rw-r--r--extra/mesa/PKGBUILD10
1 files changed, 10 insertions, 0 deletions
diff --git a/extra/mesa/PKGBUILD b/extra/mesa/PKGBUILD
index 1a4ca069..1a597eca 100644
--- a/extra/mesa/PKGBUILD
+++ b/extra/mesa/PKGBUILD
@@ -140,3 +140,13 @@ if [ "$CARCH" = 'i686' -o "$CARCH" = 'i486' ]; then
'
)"
fi
+
+# LTO on i486 results in out-of-memory
+if [ "$CARCH" == 'i486' ]; then
+ eval "$(
+ declare -f build | \
+ sed '
+ s/-D b_lto=true/-D b_lto=false/
+ '
+ )"
+fi