harden the build

This commit is contained in:
Jan Synacek 2014-12-17 09:21:38 +01:00
parent 40aff41da5
commit 098f3b5fe6
1 changed files with 5 additions and 2 deletions

View File

@ -5,7 +5,7 @@
Name: openldap
Version: 2.4.40
Release: 4%{?dist}
Release: 5%{?dist}
Summary: LDAP support libraries
Group: System Environment/Daemons
License: OpenLDAP
@ -191,7 +191,7 @@ popd
export LDFLAGS="-pie"
# avoid stray dependencies (linker flag --as-needed)
# enable experimental support for LDAP over UDP (LDAP_CONNECTIONLESS)
export CFLAGS="${CFLAGS} %{optflags} -Wl,--as-needed -DLDAP_CONNECTIONLESS"
export CFLAGS="${CFLAGS} %{optflags} -Wl,--as-needed,-z,relro,-z,now -DLDAP_CONNECTIONLESS"
pushd openldap-%{version}
%configure \
@ -576,6 +576,9 @@ exit 0
%{_mandir}/man3/*
%changelog
* Wed Dec 17 2014 Jan Synáček <jsynacek@redhat.com> - 2.4.40-5
- harden the build
* Tue Dec 16 2014 Jan Synáček <jsynacek@redhat.com> - 2.4.40-4
- remove openldap.pc