#29 Disable LTO on arm. (#1918924)
Merged 2 years ago by nickc. Opened 2 years ago by tstellar.
rpms/ tstellar/binutils arm-fix  into  rawhide

file modified
+14 -2
@@ -39,7 +39,7 @@ 

  Summary: A GNU collection of binary utilities

  Name: binutils%{?name_cross}%{?_with_debug:-debug}

  Version: 2.37

- Release: 11%{?dist}

+ Release: 12%{?dist}

  License: GPLv3+

  URL: https://sourceware.org/binutils

  
@@ -494,10 +494,19 @@ 

  # The LDFLAGS containing -flto are not being passed when linking the

  # libbfd.so, so the build fails.  Solution: disable LTO.

  %if %{with clang}

- %global _lto_cflags %{nil}

  %define enable_lto 0

  %endif

  

+ # Disable LTO on arm due to:

+ # https://bugzilla.redhat.com/show_bug.cgi?id=1918924

+ %ifarch %{arm}

+ %define enable_lto 0

+ %endif

+ 

+ %if !0%{?enable_lto}

+ %global _lto_cflags %{nil}

+ %endif

+ 

  %set_build_flags

  

  %ifarch %{power64}
@@ -896,6 +905,9 @@ 

  

  #----------------------------------------------------------------------------

  %changelog

+ * Mon Sep 13 2021 Tom Stellard <tstellar@redhat.com> - 2.37-12

+ - Disable LTO on arm. (#1918924)

+ 

  * Tue Aug 31 2021 Nick Clifton  <nickc@redhat.com> - 2.37-11

  - Enable -separate-code for all architectures, not just x86/x86_64.

  

no initial comment

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.

rebased onto bb9040ab8510db0bde9f254c92840c280137bb55

2 years ago

rebased onto fc9e9dc7678d554143520bd02b346a197aac8249

2 years ago

rebased onto 73c2d21

2 years ago

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci

Pull-Request has been merged by nickc

2 years ago
Metadata