From d58c7f7aad53d82409c53cec4c3dd3b27ae925d9 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 25 Mar 2022 10:14:13 +0100 Subject: extra/xorg-server: disabled LTO on i486 --- extra/xorg-server/PKGBUILD | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/extra/xorg-server/PKGBUILD b/extra/xorg-server/PKGBUILD index 1729fb17..f30c30dd 100644 --- a/extra/xorg-server/PKGBUILD +++ b/extra/xorg-server/PKGBUILD @@ -12,3 +12,13 @@ eval "$( patch -Np1 -i "$srcdir/xorg-server-21.1.3-probed-mode-name-not-null.patch" ' )" + +# disabling LTO on i486 as enabling it leads to all kind of link errors +if [ "${CARCH}" = "i486" ]; then + eval "$( + declare -f build | \ + sed ' + s/arch-meson /arch-meson -Db_lto=false / + ' + )" +fi -- cgit v1.2.3-70-g09d2