compile with full RELRO

This commit is contained in:
Miroslav Lichvar 2012-12-20 11:25:26 +01:00
parent 185350a427
commit ec3ba775c1

View File

@ -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}