From 0ddb1d9e5f81944b0556f49bc30878a55d42951e Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Fri, 22 Sep 2023 12:12:17 +0000 Subject: [PATCH] WORKAROUND: disable LTO on i686 arch to mitigate Internal Compiler Error Issue described here: https://bugzilla.redhat.com/show_bug.cgi?id=2239498 TODO: Remove when the issue is resolved Related: RHEL-8411 --- mariadb.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mariadb.spec b/mariadb.spec index 8d2ea56..ea9883e 100644 --- a/mariadb.spec +++ b/mariadb.spec @@ -26,6 +26,11 @@ # Turn that off to ensure such files don't get included in RPMs (cf bz#884755). %global _default_patch_flags --no-backup-if-mismatch +# Temporary workaround to fix the "internal compiler error" described in https://bugzilla.redhat.com/show_bug.cgi?id=2239498 +# TODO: Remove when the issue is resolved +%ifarch i686 +%global _lto_cflags %{nil} +%endif # Mroonga engine