From 78c6349ed70b45ae580979067543cf7326a2b57f Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 25 Jan 2018 20:03:04 +0100 Subject: [PATCH] Override linker flags done in redhat-rpm-config-84-1.fc28 https://bugzilla.redhat.com/show_bug.cgi?id=1535422 https://fedoraproject.org/wiki/Changes/BINUTILS2291 --- samba.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/samba.spec b/samba.spec index aec51bf..7d1eb30 100644 --- a/samba.spec +++ b/samba.spec @@ -819,6 +819,11 @@ xzcat %{SOURCE0} | gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} - %global _samba_private_libraries %{_libsmbclient}%{_libwbclient} +# Samba cannot be linked with -Wl,-z,defs (from hardened build config) +# For exmple the samba-cluster-support library is marked to allow undefined +# symbols in the samba build. +export LDFLAGS="$(echo %{__global_ldflags} | sed -e 's/-Wl,-z,defs//')" + %configure \ --enable-fhs \ --with-piddir=/run \