From 325dc837c6837f7240a808fc1116e1766a58ac88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Mon, 3 Aug 2020 15:31:10 +0100 Subject: [PATCH] Disable LTO to avoid LD_PRELOAD breakage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Daniel P. Berrangé --- libvirt.spec | 3 +++ 1 file changed, 3 insertions(+) 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