Disable LTO

This commit is contained in:
Jeff Law 2020-07-01 15:28:31 -06:00
parent 80474fcdea
commit 9efe171b21

View File

@ -31,7 +31,7 @@
Name: ocaml
Version: 4.11.0
Release: 0.4.dev2%{?dist}
Release: 0.5.dev2%{?dist}
Summary: OCaml compiler and programming environment
@ -174,6 +174,12 @@ autoconf --force
%build
# This package fails to build with LTO due to undefined symbols. LTO
# was disabled in OpenSuSE as well, but with no real explanation why
# beyond the undefined symbols. It really shold be investigated further.
# Disable LTO
%define _lto_cflags %{nil}
%ifnarch %{no_parallel_build_arches}
make="make %{?_smp_mflags}"
%else
@ -375,6 +381,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/ocaml/eventlog_metadata
%changelog
* Wed Jul 01 2020 Jeff Law <law@redhat.com> - 4.11.0-0.5.dev2.fc33
- Disable LTO
* Mon May 04 2020 Richard W.M. Jones <rjones@redhat.com> - 4.11.0-0.4.dev2.fc33
- Move to OCaml 4.11.0+dev2-2020-04-22.
- Backport upstream RISC-V backend from 4.12 + fixes.