--- /dev/null
+# Remove when mozbz#1269319 lands
+
+--- firefox-45.0.1-orig/mozilla/js/src/Makefile.in 2016-05-17 14:53:58.753178403 +0200
++++ firefox-45.0.1/mozilla/js/src/Makefile.in 2016-05-17 14:53:28.432817862 +0200
+@@ -144,6 +144,11 @@ distclean::
+
+ CFLAGS += $(MOZ_ZLIB_CFLAGS)
+
++# Avoid GNU gcc bug #70526
++# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70526#c14
++CFLAGS += -fno-schedule-insns2
++CXXFLAGS += -fno-schedule-insns2
++
+ # Silence warnings on AIX/HP-UX from non-GNU compilers
+ ifndef GNU_CC
+ ifeq ($(OS_ARCH),AIX)
+
Patch1: no-subshell.patch
Patch2: enable-addons.patch
Patch3: mozilla-1269171-badalloc.patch
+Patch4: mozilla-1245783.patch
URL: http://www.mozilla.org/projects/thunderbird/
BuildRequires: GConf2-devel >= 1.2.1
BuildRequires: alsa-lib-devel
%patch1 -p1
%patch2 -p1
%patch3 -p1
+%patch4 -p1
%build
cat << EOF > .mozconfig
mk_add_options MOZ_OBJDIR=%{objdir}
-export CFLAGS="%{rpmcflags}"
-export CXXFLAGS="%{rpmcflags}"
-
%if %{with crashreporter}
export MOZ_DEBUG_SYMBOLS=1
%endif
ac_add_options --enable-crash-on-assert
%else
ac_add_options --disable-debug
-ac_add_options --disable-debug-modules
-ac_add_options --disable-logging
ac_add_options --enable-optimize="%{rpmcflags} -Os"
%endif
ac_add_options --disable-strip