fixed optimize_flags condition

This commit is contained in:
Martin Stransky 2017-03-02 12:04:42 +01:00
parent 2967f737ef
commit 8f71944713

View File

@ -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