From 57481f93943114ea7cf42b2b0992f4caedc5826b Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 10 Mar 2022 13:13:54 +0800 Subject: [PATCH] ghc_set_gcc_flags: disable brp-strip-lto to avoid strip timestamp warnings --- ghc-rpm-macros.spec | 5 ++++- macros.ghc | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ghc-rpm-macros.spec b/ghc-rpm-macros.spec index 03b7a66..fbd59ef 100644 --- a/ghc-rpm-macros.spec +++ b/ghc-rpm-macros.spec @@ -7,7 +7,7 @@ %endif Name: ghc-rpm-macros -Version: 2.3.14 +Version: 2.3.15 Release: 1%{?dist} Summary: RPM macros for building Haskell packages for GHC @@ -184,6 +184,9 @@ EOF %changelog +* Thu Mar 10 2022 Jens Petersen - 2.3.15-1 +- ghc_set_gcc_flags: disable brp-strip-lto to avoid strip timestamp warnings + * Sat Feb 12 2022 Jens Petersen - 2.3.14-1 - ghc_set_gcc_flags: also sed CFLAGS when preset in F36 because of https://fedoraproject.org/wiki/Changes/SetBuildFlagsBuildCheck diff --git a/macros.ghc b/macros.ghc index 34ec75a..b8be433 100644 --- a/macros.ghc +++ b/macros.ghc @@ -12,6 +12,7 @@ LANG=C.utf8\ %ghc_set_gcc_flags\ %global _lto_cflags %{nil}\ +%global __brp_strip_lto %{nil}\ # -Wunused-label is extremely noisy\ %ifarch s390x\ CFLAGS="$(echo ${CFLAGS:-%optflags} | sed -e 's/-Wall //' -e 's/-Werror=format-security //')"\