Add only extra flags to default RPM LDFLAGS

This commit is contained in:
Petr Menšík 2018-02-21 13:10:43 +01:00
parent 0a45402a80
commit 6fe14fc8ff

View File

@ -30,7 +30,7 @@
Summary: Low-level DNS(SEC) library with API
Name: ldns
Version: 1.7.0
Release: 13%{?dist}
Release: 14%{?dist}
License: BSD
Url: http://www.nlnetlabs.nl/%{name}/
@ -179,10 +179,9 @@ cp -a %{pkgname}_python2 %{pkgname}_python3
%build
CFLAGS="%{optflags} -fPIC"
CXXFLAGS="%{optflags} -fPIC"
LDFLAGS="-Wl,-z,relro,-z,now -pie"
LDFLAGS="$RPM_LD_FLAGS -Wl,-z,now -pie"
export CFLAGS CXXFLAGS LDFLAGS
%if %{with_gost}
%global enable_gost --enable-gost
%else
@ -342,6 +341,9 @@ rm -rf doc/man
%doc doc
%changelog
* Wed Feb 21 2018 Petr Menšík <pemensik@redhat.com> - 1.7.0-14
- Add only extra flags to default RPM LDFLAGS
* Wed Feb 21 2018 Petr Menšík <pemensik@redhat.com> - 1.7.0-13
- Support for python3 package (#1323248)
- Moved perl manual pages to perl-ldns