build: fix for gcc 6.0.0

Per kdudka's comment:
From https://bugzilla.redhat.com/show_bug.cgi?id=1306162#c5:

GCC upstream explains why this is a bug in openjade's code:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69534#c9
As fixing the code would be non-trivial, using the
-fno-lifetime-dse compilation flag sounds like a good enough
solution to this bug.

Resolves: rhbz#1306162
Version: 1.3.2-51
This commit is contained in:
Pavel Raiskup 2016-02-15 23:23:50 +01:00
parent f54460eb60
commit 3e7c8f6fb5

View File

@ -1,7 +1,7 @@
Summary: A DSSSL implementation
Name: openjade
Version: 1.3.2
Release: 50%{?dist}
Release: 51%{?dist}
Requires: sgml-common
URL: http://openjade.sourceforge.net/
Source: http://download.sourceforge.net/openjade/openjade-%{version}.tar.gz
@ -55,7 +55,7 @@ XML, RTF, TeX, MIF (FrameMaker), SGML, or XML.
%build
cp -p %{SOURCE2} %{SOURCE3} config/
# more info: rhbz#1306162
export CXXFLAGS="%optflags -fno-tree-dse"
export CXXFLAGS="%optflags -fno-lifetime-dse"
%configure --disable-static --datadir=%{_datadir}/sgml/%{name}-%{version} \
--enable-splibdir=%{_libdir}
make
@ -109,6 +109,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/sgml/%{name}-%{version}
%changelog
* Mon Feb 15 2016 Pavel Raiskup <praiskup@redhat.com> - 1.3.2-51
- using -fno-lifetime-dse instead of -ftree-dse (rhbz#1306162)
* Thu Feb 11 2016 Pavel Raiskup <praiskup@redhat.com> - 1.3.2-50
- temporarily disable -ftree-dse optimization (rhbz#1306162)