From 10445d7e27d67744622e6a9addcd7e42b787712a Mon Sep 17 00:00:00 2001 From: Michal Schorm Date: Wed, 20 Sep 2023 12:20:30 +0200 Subject: [PATCH] WORKAROUND: disable LTO on i686 arch to mitigate Internal Compiler Error https://bugzilla.redhat.com/show_bug.cgi?id=2239498 TODO: Remove when the issue is resolved --- mariadb.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mariadb.spec b/mariadb.spec index 21643cd..a5ba922 100644 --- a/mariadb.spec +++ b/mariadb.spec @@ -26,6 +26,12 @@ # 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