From c7738474d36492e329d79f3c4977a37c18979ae4 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 24 Mar 2022 11:24:38 +0100 Subject: core/systemd: disabled LTO in EFI boot on i486 (fails to find efi_main entrypoint) --- core/systemd/PKGBUILD | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'core') diff --git a/core/systemd/PKGBUILD b/core/systemd/PKGBUILD index 0238f208..223a7cb8 100644 --- a/core/systemd/PKGBUILD +++ b/core/systemd/PKGBUILD @@ -5,3 +5,14 @@ eval "$( s/\(meson test -C build\)/\1 || true/ ' )" + +# disabling LTO on i486 in EFI, fails with undefined entry point efi_main +if [ "${CARCH}" = "i486" ]; then + eval "$( + declare -f build | \ + sed ' + /local _meson_options.*/ a \ + _meson_options+=(-Db_lto=false) + ' + )" +fi -- cgit v1.2.3-70-g09d2