From 618dace6947885339ac55c76246705289b78e7ea Mon Sep 17 00:00:00 2001 From: Ingvar Hagelund Date: Tue, 4 Aug 2020 12:48:36 +0200 Subject: [PATCH] Added -Wno-error=free-nonheap-object to CFLAS to build on s390x --- varnish.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/varnish.spec b/varnish.spec index a6a2177..c7c6540 100644 --- a/varnish.spec +++ b/varnish.spec @@ -24,7 +24,7 @@ Summary: High-performance HTTP accelerator Name: varnish Version: 6.4.0 -Release: 3%{?dist} +Release: 4%{?dist} License: BSD URL: https://www.varnish-cache.org/ Source0: http://varnish-cache.org/_downloads/%{name}-%{version}%{?vd_rc}.tgz @@ -207,6 +207,10 @@ export CFLAGS="%{optflags} -fno-exceptions -fPIC -ffloat-store" %endif %endif +%ifarch s390x +export CFLAGS="%{optflags} -Wno-error=free-nonheap-object" +%endif + # What gcc version is this? gcc --version @@ -429,6 +433,9 @@ fi %changelog +* Tue Aug 04 2020 Ingvar Hagelund 6.4.0-4 +- Added -Wno-error=free-nonheap-object to CFLAS to build on s390x + * Sat Aug 01 2020 Fedora Release Engineering - 6.4.0-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild