From 9a341be0e168a091ce6c87231b22ed4802e4d462 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 8 Feb 2022 13:27:43 +0800 Subject: [PATCH] ghc_set_gcc_flags disable _lto_cflags for all archs --- ghc-rpm-macros.spec | 10 ++++++++-- macros.ghc | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ghc-rpm-macros.spec b/ghc-rpm-macros.spec index 1db2df6..6b23f8d 100644 --- a/ghc-rpm-macros.spec +++ b/ghc-rpm-macros.spec @@ -7,7 +7,7 @@ %endif Name: ghc-rpm-macros -Version: 2.3.12 +Version: 2.3.13 Release: 1%{?dist} Summary: RPM macros for building Haskell packages for GHC @@ -184,8 +184,14 @@ EOF %changelog +* Tue Feb 8 2022 Jens Petersen - 2.3.13-1 +- ghc_set_gcc_flags: disable _lto_cflags for all archs + to address missing symbol linking errors across packages + (particularly those using FFI) + * Fri Jan 21 2022 Jens Petersen - 2.3.12-1 -- disable package notes since breaks all Haskell packages (#2043092) +- disable package notes which broke all Haskell package builds (#2043092) + https://fedoraproject.org/wiki/Changes/Package_information_on_ELF_objects * Thu Jan 20 2022 Fedora Release Engineering - 2.3.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild diff --git a/macros.ghc b/macros.ghc index a6c20e5..370c48c 100644 --- a/macros.ghc +++ b/macros.ghc @@ -11,9 +11,9 @@ LANG=C.utf8\ %ghc_set_gcc_flags\ +%global _lto_cflags %{nil}\ # -Wunused-label is extremely noisy\ %ifarch s390x\ -%define _lto_cflags %{nil}\ CFLAGS="${CFLAGS:-$(echo %optflags | sed -e 's/-Wall //' -e 's/-Werror=format-security //')}"\ %else\ CFLAGS="${CFLAGS:-%optflags}"\