compile with full RELRO
This commit is contained in:
parent
185350a427
commit
ec3ba775c1
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user