diff --git a/samba.spec b/samba.spec index 7d1eb30..ffb50bb 100644 --- a/samba.spec +++ b/samba.spec @@ -25,6 +25,12 @@ # This is a network daemon, do a hardened build # Enables PIE and full RELRO protection %global _hardened_build 1 +# 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. +# +# https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/master/f/buildflags.md +%undefine _strict_symbol_defs_build %global with_libsmbclient 1 %global with_libwbclient 1 @@ -819,11 +825,6 @@ 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 \