From 9efe171b211bfdddc06adab55c02c1838ee88302 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Wed, 1 Jul 2020 15:28:31 -0600 Subject: [PATCH] Disable LTO --- ocaml.spec | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ocaml.spec b/ocaml.spec index f945893..ee6865a 100644 --- a/ocaml.spec +++ b/ocaml.spec @@ -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 - 4.11.0-0.5.dev2.fc33 +- Disable LTO + * Mon May 04 2020 Richard W.M. Jones - 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.