Avoid undefined symbols from new linker flags

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrange 2018-01-23 13:01:06 +00:00
parent 8adbb7a402
commit 21316e7a45
1 changed files with 5 additions and 0 deletions

View File

@ -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