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}