From 0ea33eec603687e056b3e576a0215d400ff300e0 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Fri, 21 Aug 2020 09:04:40 -0600 Subject: [PATCH] Narrow LTO opt-opt to just armv7hl --- nodejs.spec | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/nodejs.spec b/nodejs.spec index 26dc400..88beabe 100644 --- a/nodejs.spec +++ b/nodejs.spec @@ -7,7 +7,7 @@ # This is used by both the nodejs package and the npm subpackage thar # has a separate version - the name is special so that rpmdev-bumpspec # will bump this rather than adding .1 to the end. -%global baserelease 1 +%global baserelease 2 %{?!_pkgdocdir:%global _pkgdocdir %{_docdir}/%{name}-%{version}} @@ -364,9 +364,11 @@ find . -type f -exec sed -i "s~python -c~python3 -c~" {} \; %endif %build -# This package has static probes which do not work with LTO -# Disable LTO +# When compiled on armv7hl this package generates an out of range +# reference to the literal pool. This is most likely a GCC issue. +%ifarch armv7hl %define _lto_cflags %{nil} +%endif %ifarch s390 s390x %{arm} %ix86 # Decrease debuginfo verbosity to reduce memory consumption during final @@ -686,6 +688,9 @@ end %changelog +* Fri Aug 21 2020 Jeff Law - 1:14.7.0-2 +- Narrow LTO opt-out to just armv7hl + * Fri Jul 31 2020 Stephen Gallagher - 1:14.7.0-1 - Update to 14.7.0