mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-18 10:35:20 +00:00
rpm: disable LTO in Fedora 34
A binutils change has caused breakage when linking the tests /usr/bin/ld: tests/libtest_qemu_driver.so: undefined reference to `__open_missing_mode' This is probably a regression in binutils, so disable LTO until we get more clarity on the root cause and whether binutils or libvirt will need changing. https://bugzilla.redhat.com/show_bug.cgi?id=1889763 Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
ccbe3ec798
commit
a16c0402ba
@ -990,6 +990,13 @@ Libvirt plugin for NSS for translating domain names into IP addresses.
|
|||||||
%autosetup -S git_am
|
%autosetup -S git_am
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
|
%if 0%{?fedora} == 34
|
||||||
|
# binutils change in F34 broke linking of tests
|
||||||
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1889763
|
||||||
|
%define _lto_cflags %{nil}
|
||||||
|
%endif
|
||||||
|
|
||||||
%if ! %{supported_platform}
|
%if ! %{supported_platform}
|
||||||
echo "This RPM requires either Fedora >= %{min_fedora} or RHEL >= %{min_rhel}"
|
echo "This RPM requires either Fedora >= %{min_fedora} or RHEL >= %{min_rhel}"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user