From 3357c26b36f8f1c7d8edda60c58c729a984321d0ede54029fdcffd67d8da4b2e Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Fri, 16 Jun 2017 19:25:29 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/server:proxy/squid?expand=0&rev=125 --- squid.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/squid.spec b/squid.spec index 7797e99..706438e 100644 --- a/squid.spec +++ b/squid.spec @@ -88,8 +88,9 @@ perl -p -i -e 's|%{_prefix}/local/bin/perl|%{_bindir}/perl|' `find -name "*.pl"` chmod a-x CREDITS %build -export CFLAGS="%{optflags} -DOPENSSL_LOAD_CONF" -export CXXFLAGS="%{optflags} -DOPENSSL_LOAD_CONF" +export CFLAGS="%{optflags} -fPIE -fPIC -DOPENSSL_LOAD_CONF" +export CXXFLAGS="%{optflags} -fPIE -fPIC -DOPENSSL_LOAD_CONF" +export LDFLAGS="-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro,-z,now -pie" %configure \ --disable-strict-error-checking \ --sysconfdir=%{squidconfdir} \