[mailman] build with full relro support
Jan Kaluža
jkaluza at fedoraproject.org
Tue Jul 23 08:23:17 UTC 2013
commit 9d45c9e85e89d1fdea99be107a9d260a408e1791
Author: Jan Kaluza <hanzz.k at gmail.com>
Date: Tue Jul 23 10:22:11 2013 +0200
build with full relro support
mailman.spec | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/mailman.spec b/mailman.spec
index 85a6a30..5e8c0c3 100644
--- a/mailman.spec
+++ b/mailman.spec
@@ -4,7 +4,7 @@
Summary: Mailing list manager with built in Web access
Name: mailman
Version: 2.1.15
-Release: 13%{?dist}
+Release: 14%{?dist}
Epoch: 3
Group: Applications/Internet
Source0: ftp://ftp.gnu.org/pub/gnu/mailman/mailman-%{version}.tgz
@@ -140,7 +140,10 @@ cp %{SOURCE5} INSTALL.REDHAT.in
%build
-CFLAGS="$RPM_OPT_FLAGS"; export CFLAGS
+CFLAGS="$RPM_OPT_FLAGS -fPIE -DPIE"; export CFLAGS
+# Full relro
+export LDFLAGS="$LDFLAGS -pie -Wl,-z,relro -Wl,-z,now"
+
rm -f configure
aclocal
autoconf
@@ -581,6 +584,9 @@ exit 0
%dir %attr(775,root,%{mmgroup}) %{lockdir}
%changelog
+* Tue Jul 23 2013 Jan Kaluza <jkaluza at redhat.com> - 3:2.1.15-14
+- build with full relro support
+
* Thu Apr 04 2013 Jan Kaluza <jkaluza at redhat.com> - 3:2.1.15-13
- move mailman-update-cfg to /usr/lib/mailman/bin
More information about the scm-commits
mailing list