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
This commit is contained in:
Andreas Schneider 2018-01-25 20:03:04 +01:00
parent f3ddc2f6b9
commit 78c6349ed7
1 changed files with 5 additions and 0 deletions

View File

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