Disable LTO on riscv64

[..]
/usr/bin/ld: /tmp/ccaGkN8v.ltrans14.ltrans.o:(.note.stapsdt+0x74): undefined reference to `perl_sub__return_semaphore'
/usr/bin/ld: /tmp/ccaGkN8v.ltrans14.ltrans.o:(.note.stapsdt+0x108): undefined reference to `perl_phase__change_semaphore'
/usr/bin/ld: /tmp/ccaGkN8v.ltrans24.ltrans.o:(.note.stapsdt+0x24): undefined reference to `perl_loaded__file_semaphore'
/usr/bin/ld: /tmp/ccaGkN8v.ltrans24.ltrans.o:(.note.stapsdt+0x68): undefined reference to `perl_loading__file_semaphore'
collect2: error: ld returned 1 exit status
[..]

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2022-09-05 21:46:22 +03:00
parent 6004999de2
commit 04d742de97
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 8 additions and 1 deletions

View File

@ -104,7 +104,7 @@ License: GPL+ or Artistic
Epoch: %{perl_epoch}
Version: %{perl_version}
# release number must be even higher, because dual-lived modules will be broken otherwise
Release: 492%{?dist}
Release: 492.0.riscv64%{?dist}
Summary: Practical Extraction and Report Language
Url: https://www.perl.org/
Source0: https://www.cpan.org/src/5.0/perl-%{perl_version}.tar.xz
@ -4262,6 +4262,10 @@ sed -i '\|cpan/Memoize/Memoize/NDBM_File.pm|d' MANIFEST
%build
%ifarch riscv64
%define _lto_cflags %{nil}
%endif
echo "RPM Build arch: %{_arch}"
# use "lib", not %%{_lib}, for privlib, sitelib, and vendorlib
@ -6998,6 +7002,9 @@ popd
# Old changelog entries are preserved in CVS.
%changelog
* Mon Sep 05 2022 David Abdurachmanov <davidlt@rivosinc.com> - 4:5.36.0-492.0.riscv64
- Disable LTO on riscv64
* Tue Aug 30 2022 Jitka Plesnikova <jplesnik@redhat.com> - 4:5.36.0-492
- Update dependencies for perl-Module-Loaded (bz#2119130)