From 4c85de4880ca57e2e2fac2b44c6919eadfe37a692b4be54f455b8fd13fb16993 Mon Sep 17 00:00:00 2001 From: Petr Uzel Date: Wed, 8 Feb 2012 11:34:26 +0000 Subject: [PATCH] Accepting request 102828 from home:elvigia:branches:network - Build with PIE and full RELRO OBS-URL: https://build.opensuse.org/request/show/102828 OBS-URL: https://build.opensuse.org/package/show/network/rsync?expand=0&rev=21 --- rsync.changes | 5 +++++ rsync.spec | 8 +++++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/rsync.changes b/rsync.changes index fce1a4d..e8bad86 100644 --- a/rsync.changes +++ b/rsync.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Feb 5 23:25:26 UTC 2012 - crrodriguez@opensuse.org + +- Build with PIE and full RELRO + ------------------------------------------------------------------- Wed Dec 21 10:42:30 UTC 2011 - coolo@suse.com diff --git a/rsync.spec b/rsync.spec index b2ce0d8..4288ce8 100644 --- a/rsync.spec +++ b/rsync.spec @@ -1,7 +1,7 @@ # # spec file for package rsync # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + %define with_system_zlib 0 %if 0%{?suse_version} < 1120 %define _initddir %{_sysconfdir}/init.d @@ -78,8 +79,9 @@ patch -p1 < patches/slp.diff patch -p1 < patches/drop-cache.diff %build -autoheader -autoconf +autoreconf -fiv +export CFLAGS="%optflags -fPIC -DPIC -fPIE" +export LDFLAGS="-Wl,-z,relro,-z,now -pie" %configure \ --disable-debug \ --enable-slp \