[shadow-utils/f16] compile with PIE and RELRO flags (#784349)

Peter Vrabec pvrabec at fedoraproject.org
Mon Feb 13 11:11:13 UTC 2012


commit 91d35b9d663d220f2ef0c85810b08e975c84989e
Author: Peter Vrabec <pvrabec at redhat.com>
Date:   Tue Feb 7 18:04:27 2012 +0100

    compile with PIE and RELRO flags (#784349)
    
    Conflicts:
    
    	shadow-utils.spec

 shadow-utils.spec |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/shadow-utils.spec b/shadow-utils.spec
index afe5104..433ee84 100644
--- a/shadow-utils.spec
+++ b/shadow-utils.spec
@@ -1,7 +1,7 @@
 Summary: Utilities for managing accounts and shadow password files
 Name: shadow-utils
 Version: 4.1.4.3
-Release: 12%{?dist}
+Release: 13%{?dist}
 Epoch: 2
 URL: http://pkg-shadow.alioth.debian.org/
 Source0: http://pkg-shadow.alioth.debian.org/releases/shadow-%{version}.tar.bz2
@@ -79,6 +79,16 @@ cp -f doc/HOWTO.utf8 doc/HOWTO
 #autoconf
 
 %build
+
+%ifarch sparc64
+#sparc64 need big PIE
+export CFLAGS="$RPM_OPT_FLAGS -fPIE"
+export LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now"
+%else
+export CFLAGS="$RPM_OPT_FLAGS -fpie"
+export LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now"
+%endif
+
 %configure \
         --enable-shadowgrp \
         --with-audit \
@@ -228,6 +238,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man8/vigr.8*
 
 %changelog
+* Tue Feb 07 2012 Peter Vrabec <pvrabec at redhat.com> - 2:4.1.4.3-13
+- compile with PIE and RELRO flags (#784349)
+
 * Tue Dec 20 2011 Peter Vrabec <pvrabec at redhat.com> - 2:4.1.4.3-12
 - fix leaks in .IDs patch (#734340)
 


More information about the scm-commits mailing list