summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2017-03-02 12:04:42 +0100
committerMartin Stransky <stransky@redhat.com>2017-03-02 12:04:42 +0100
commit8f7194471336d00ec981d328505e9f496bd51d3e (patch)
tree777837c069e322daa47ac5e1a977988ab79c2600
parentTest another ARMv7 build setup (rhbz#1426850) (diff)
downloadlibrewolf-fedora-ff-8f7194471336d00ec981d328505e9f496bd51d3e.tar.gz
librewolf-fedora-ff-8f7194471336d00ec981d328505e9f496bd51d3e.tar.bz2
librewolf-fedora-ff-8f7194471336d00ec981d328505e9f496bd51d3e.zip
fixed optimize_flags condition
-rw-r--r--firefox.spec3
1 files changed, 2 insertions, 1 deletions
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
bgstack15