From 430b7b0133da451a81d400a6a751f45b382ba300 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 30 Sep 2021 09:17:30 +0200 Subject: extra/mesa: disable LTO on i486 --- extra/mesa/PKGBUILD | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'extra/mesa') 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 -- cgit v1.2.3-70-g09d2