From f21c1c5adf6897ddb92a036ca6aa83dee659b189 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Mon, 17 Aug 2020 22:15:19 -0600 Subject: [PATCH] Disable LTO on ppc64le --- gnutls.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gnutls.spec b/gnutls.spec index 8767ccc..fddce83 100644 --- a/gnutls.spec +++ b/gnutls.spec @@ -1,6 +1,6 @@ # This spec file has been automatically updated Version: 3.6.14 -Release: 6%{?dist} +Release: 7%{?dist} Patch1: gnutls-3.6.7-no-now-guile.patch Patch2: gnutls-3.2.7-rpath.patch Patch3: gnutls-3.6.14-fix-iovec-memory-leak.patch @@ -158,6 +158,11 @@ echo "SYSTEM=NORMAL" >> tests/system.prio # via the crypto policies %build +# gnulib has bogus floating point tests which are compromised by +# LTO affecting ppc64le builds +%ifarch ppc64le +%define _lto_cflags %{nil} +%endif CCASFLAGS="$CCASFLAGS -Wa,--generate-missing-build-notes=yes" export CCASFLAGS @@ -282,6 +287,9 @@ make check %{?_smp_mflags} GNUTLS_SYSTEM_PRIORITY_FILE=/dev/null %endif %changelog +* Mon Aug 17 2020 Jeff Law - 3.6.14-7 +- Disable LTO on ppc64le + * Tue Aug 4 2020 Daiki Ueno - 3.6.14-6 - Fix underlinking of libpthread