From 49783ccec7b8c173a2348c92d5f951ae810a58beff2cfcefc26c7a4409812f36 Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Tue, 16 Jul 2019 07:57:43 +0000 Subject: [PATCH] - disable LTO to as a workaround to tests failing OBS-URL: https://build.opensuse.org/package/show/server:proxy/squid?expand=0&rev=189 --- squid.changes | 1 + squid.spec | 3 +++ 2 files changed, 4 insertions(+) diff --git a/squid.changes b/squid.changes index f54ac86..6782d06 100644 --- a/squid.changes +++ b/squid.changes @@ -22,6 +22,7 @@ Mon Jul 15 14:58:13 UTC 2019 - Adam Majer + Fix Memory leak when http_reply_access uses external_acl + Fix Multiple XSS issues in cachemgr.cgi (bsc#1140738, CVE-2019-13345) +- disable LTO to as a workaround to tests failing ------------------------------------------------------------------- Wed May 8 10:41:22 UTC 2019 - Adam Majer diff --git a/squid.spec b/squid.spec index f0e2164..da83e6b 100644 --- a/squid.spec +++ b/squid.spec @@ -89,10 +89,13 @@ perl -p -i -e 's|%{_prefix}/local/bin/perl|%{_bindir}/perl|' `find -name "*.pl"` %patch1 -p1 %build +%define _lto_cflags %{nil} autoreconf -fi cd libltdl; autoreconf -fi; cd .. export CFLAGS="%{optflags} -fPIE -fPIC -DOPENSSL_LOAD_CONF" export CXXFLAGS="%{optflags} -fPIE -fPIC -DOPENSSL_LOAD_CONF" +#export CFLAGS="-O2 -fPIE -fPIC -DOPENSSL_LOAD_CONF" +#export CXXFLAGS="-O2 -fPIE -fPIC -DOPENSSL_LOAD_CONF" export LDFLAGS="-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro,-z,now -pie" %configure \ --disable-strict-error-checking \