[sudo/f14] build with RELPRO

Daniel Kopeček mildew at fedoraproject.org
Fri Jun 3 13:25:58 UTC 2011


commit 4b24b9bea4069660d7c57974c3ce6a9249428e53
Author: Daniel Kopecek <dkopecek at redhat.com>
Date:   Fri Jun 3 15:26:09 2011 +0200

    build with RELPRO

 sudo.spec |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/sudo.spec b/sudo.spec
index fea81a0..4c620da 100644
--- a/sudo.spec
+++ b/sudo.spec
@@ -1,7 +1,7 @@
 Summary: Allows restricted root access for specified users
 Name: sudo
 Version: 1.7.4p5
-Release: 1%{?dist}
+Release: 2%{?dist}
 License: ISC
 Group: Applications/System
 URL: http://www.courtesan.com/sudo/
@@ -64,7 +64,7 @@ F_PIE=-fPIE
 F_PIE=-fpie
 %endif
 
-export CFLAGS="$RPM_OPT_FLAGS $F_PIE" LDFLAGS="-pie"
+export CFLAGS="$RPM_OPT_FLAGS $F_PIE" LDFLAGS="-pie -Wl,-z,relro -Wl,-z,now"
 
 %configure \
         --prefix=%{_prefix} \
@@ -147,6 +147,9 @@ rm -rf $RPM_BUILD_ROOT
 /bin/chmod 0440 /etc/sudoers || :
 
 %changelog
+* Fri Jun  3 2011 Daniel Kopecek <dkopecek at redhat.com> - 1.7.4p5-2
+- build with RELPRO
+
 * Mon Jan 17 2011 Daniel Kopecek <dkopecek at redhat.com> - 1.7.4p5-1
 - rebase to 1.7.4p5
 - fixed sudo-1.7.4p4-getgrouplist.patch


More information about the scm-commits mailing list