From ecda4751ebb67423febb29d372cf10003776f828 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Thu, 29 Feb 2024 22:12:06 +0800 Subject: [PATCH] %ghc_set_gcc_flags: no need to define/export CFLAGS and LDFLAGS again the macros already do that - so reduce the noise --- macros.ghc | 3 --- 1 file changed, 3 deletions(-) diff --git a/macros.ghc b/macros.ghc index f5ee4ae..c69eb2c 100644 --- a/macros.ghc +++ b/macros.ghc @@ -78,17 +78,14 @@ fi\ %ghc_set_gcc_flags\ %global _lto_cflags %{nil}\ %global __brp_strip_lto %{nil}\ -CFLAGS="${CFLAGS:-%optflags}"\ %ifarch s390x\ %if %[v"%{ghc_version}" < v"9.2"]\ # -Wunused-label is extremely noisy\ CFLAGS="$(echo ${CFLAGS:-%optflags} | sed -e 's/-Wall //' -e 's/-Werror=format-security //')"\ %endif\ %endif\ -export CFLAGS\ %undefine _package_note_flags\ %global _hardened_ldflags %{nil}\ -export LDFLAGS="${LDFLAGS:-%{?__global_ldflags}}"\ %{nil} # configure