From 21316e7a453d5a3a4108b17040773e8c2aeb1cee Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Tue, 23 Jan 2018 13:01:06 +0000 Subject: [PATCH] Avoid undefined symbols from new linker flags Signed-off-by: Daniel P. Berrange --- libvirt.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libvirt.spec b/libvirt.spec index b3ef057..85efd43 100644 --- a/libvirt.spec +++ b/libvirt.spec @@ -6,6 +6,11 @@ %define min_rhel 6 %define min_fedora 26 +# Fedora >= 28 default RPM linker flags set "-z defs" to refuse +# to link when there are undefined symbols. This breaks all of our +# dlopen()able plugins, so we must turn it off. +%undefine _strict_symbol_defs_build + %if (0%{?fedora} && 0%{?fedora} >= %{min_fedora}) || (0%{?rhel} && 0%{?rhel} >= %{min_rhel}) %define supported_platform 1 %else