From 5d644f1606b76ffa4a102433849a824d7293a404 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Thu, 30 Jul 2020 14:03:19 +0100 Subject: [PATCH] %check fails with lto enabled --- libreoffice.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libreoffice.spec b/libreoffice.spec index cab9a1b..acfb37f 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -1010,7 +1010,11 @@ mv .git .git-rpm # path to external tarballs EXTSRCDIR=`dirname %{SOURCE0}` -#use the RPM_OPT_FLAGS but remove the OOo overridden ones +# This package fails its testsuite when LTO is enabled. +# see: https://bugs.documentfoundation.org/show_bug.cgi?id=126442 +%define _lto_cflags %{nil} + +#use the RPM_OPT_FLAGS but remove the LibreOffice overridden ones for i in $RPM_OPT_FLAGS; do case "$i" in -pipe|-Wall|-Werror*|-fexceptions) continue;;