Disable LTO to avoid LD_PRELOAD breakage

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé 2020-08-03 15:31:10 +01:00
parent 5a45cb7f0d
commit 325dc837c6

View File

@ -998,6 +998,9 @@ Libvirt plugin for NSS for translating domain names into IP addresses.
%autosetup -S git_am %autosetup -S git_am
%build %build
# Disable LTO since it caused test failures by breaking LD_PRELOAD usage.
%define _lto_cflags %{nil}
%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