From ec3ba775c190182615b239140f7012429345e924 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 20 Dec 2012 11:25:26 +0100 Subject: [PATCH] compile with full RELRO --- memcached.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/memcached.spec b/memcached.spec index 3eb89d8..bccd4e2 100644 --- a/memcached.spec +++ b/memcached.spec @@ -53,6 +53,10 @@ access to the memcached binary include files. %setup -q %build +# compile with full RELRO +export CFLAGS="%{optflags} -pie -fpie" +export LDFLAGS="-Wl,-z,relro,-z,now" + %configure sed -i 's/-Werror/ /' Makefile make %{?_smp_mflags}