added full relro support

This commit is contained in:
Viktor Hercinger 2013-02-08 16:23:03 +01:00
parent 6126a24215
commit 1e1e8d9ec5
1 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,7 @@
Summary: A security tool which acts as a wrapper for TCP daemons
Name: tcp_wrappers
Version: 7.6
Release: 72%{?dist}
Release: 73%{?dist}
%define LIB_MAJOR 0
%define LIB_MINOR 7
@ -102,7 +102,7 @@ develop applications with tcp_wrappers support.
%patch30 -p1 -b .altformat
%build
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fPIC -DPIC -D_REENTRANT -DHAVE_STRERROR" LDFLAGS="-pie" MAJOR=%{LIB_MAJOR} MINOR=%{LIB_MINOR} REL=%{LIB_REL} linux
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS -fPIC -DPIC -D_REENTRANT -DHAVE_STRERROR" LDFLAGS="-pie -z relro -z now" MAJOR=%{LIB_MAJOR} MINOR=%{LIB_MINOR} REL=%{LIB_REL} linux
%install
@ -157,6 +157,9 @@ rm -rf ${RPM_BUILD_ROOT}
%{_mandir}/man3/*
%changelog
* Mon Feb 8 2013 Viktor Hercinger <vhercing@redhat.com> - 7.6-73
- Add full relro support
* Mon Feb 8 2013 Viktor Hercinger <vhercing@redhat.com> - 7.6-72
- Put binaries and libraries under /usr instead of root