From 325dc837c6837f7240a808fc1116e1766a58ac88 Mon Sep 17 00:00:00 2001 From: Daniel P. Berrangé Date: Aug 03 2020 14:31:10 +0000 Subject: Disable LTO to avoid LD_PRELOAD breakage Signed-off-by: Daniel P. Berrangé --- diff --git a/libvirt.spec b/libvirt.spec index d177e0c..6ecd835 100644 --- a/libvirt.spec +++ b/libvirt.spec @@ -998,6 +998,9 @@ Libvirt plugin for NSS for translating domain names into IP addresses. %autosetup -S git_am %build +# Disable LTO since it caused test failures by breaking LD_PRELOAD usage. +%define _lto_cflags %{nil} + %if ! %{supported_platform} echo "This RPM requires either Fedora >= %{min_fedora} or RHEL >= %{min_rhel}" exit 1