From 96e360bbd339cc1210048fc570caed2d7c52f91b Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Jul 01 2020 21:15:55 +0000 Subject: Disable LTO --- diff --git a/numactl.spec b/numactl.spec index 68903ba..ea61d2e 100644 --- a/numactl.spec +++ b/numactl.spec @@ -1,7 +1,7 @@ Name: numactl Summary: Library for tuning for Non Uniform Memory Access machines Version: 2.0.12 -Release: 4%{dist} +Release: 5%{dist} # libnuma is LGPLv2 and GPLv2 # numactl binaries are GPLv2 only License: GPLv2 @@ -37,6 +37,12 @@ Provides development headers for numa library calls %setup -q -n %{name}-%{version} %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} + %configure --prefix=/usr --libdir=%{_libdir} # Using recipe to fix rpaths, from here: # https://fedoraproject.org/wiki/RPath_Packaging_Draft#Removing_Rpath @@ -79,6 +85,7 @@ make DESTDIR=$RPM_BUILD_ROOT install %{_mandir}/man3/*.3* %changelog +* Wed Jul 01 2020 Jeff Law - 2.0.12-5 * Wed Jan 29 2020 Fedora Release Engineering - 2.0.12-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild