From 8f7194471336d00ec981d328505e9f496bd51d3e Mon Sep 17 00:00:00 2001 From: Martin Stransky Date: Thu, 2 Mar 2017 12:04:42 +0100 Subject: [PATCH] fixed optimize_flags condition --- firefox.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/firefox.spec b/firefox.spec index 0ef1399..9bd8f35 100644 --- a/firefox.spec +++ b/firefox.spec @@ -342,6 +342,7 @@ echo "ac_add_options --enable-debug" >> .mozconfig echo "ac_add_options --disable-optimize" >> .mozconfig echo "ac_add_options --enable-dtrace" >> .mozconfig %else +%define optimize_flags "none" # Fedora 26 (gcc7) needs to disable default build flags (mozbz#1342344) %if 0%{?fedora} > 25 %ifnarch s390 s390x @@ -355,7 +356,7 @@ echo "ac_add_options --enable-dtrace" >> .mozconfig %ifarch ppc64le aarch64 %define optimize_flags "-g -O2" %endif -%if %{?optimize_flags} +%if %{optimize_flags} != "none" echo 'ac_add_options --enable-optimize=%{?optimize_flags}' >> .mozconfig %else echo 'ac_add_options --enable-optimize' >> .mozconfig