Disable LTO.
This commit is contained in:
parent
c96c42830d
commit
c136f5bcbc
@ -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 <law@redhat.com> - 1.3.0-3
|
||||
Disable LTO
|
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user