From c136f5bcbc52a59a69fe01b7a1b91992c50a7b3c Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Tue, 30 Jun 2020 13:45:00 -0600 Subject: [PATCH] Disable LTO. --- librdkafka.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/librdkafka.spec b/librdkafka.spec index 1ec1424..76d28f7 100644 --- a/librdkafka.spec +++ b/librdkafka.spec @@ -1,6 +1,6 @@ Name: librdkafka Version: 1.3.0 -Release: 2%{?dist} +Release: 3%{?dist} Summary: The Apache Kafka C library License: BSD @@ -35,6 +35,12 @@ using librdkafka. %setup -q %build +# configure tests try to compile code containing ASMs to a .o file +# In an LTO world, that always works as compilation does not happen until +# link time. As a result we get the wrong results from configure. +# Disable LTO. +%define _lto_cflags %{nil} + %configure --enable-lz4 \ --enable-ssl \ --enable-sasl @@ -68,6 +74,9 @@ find %{buildroot} -name '*.a' -delete -print %changelog +* Tue Jun 30 2020 Jeff Law - 1.3.0-3 +Disable LTO + * Wed Jan 29 2020 Fedora Release Engineering - 1.3.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild