%ghc_set_gcc_flags: always sed CFLAGS whether pre-set or not
Needed for F36 https://fedoraproject.org/wiki/Changes/SetBuildFlagsBuildCheck
This commit is contained in:
parent
9a341be0e1
commit
b47d44f086
@ -7,7 +7,7 @@
|
||||
%endif
|
||||
|
||||
Name: ghc-rpm-macros
|
||||
Version: 2.3.13
|
||||
Version: 2.3.14
|
||||
Release: 1%{?dist}
|
||||
Summary: RPM macros for building Haskell packages for GHC
|
||||
|
||||
@ -184,6 +184,10 @@ EOF
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat Feb 12 2022 Jens Petersen <petersen@redhat.com> - 2.3.14-1
|
||||
- ghc_set_gcc_flags: also sed CFLAGS when preset in F36
|
||||
because of https://fedoraproject.org/wiki/Changes/SetBuildFlagsBuildCheck
|
||||
|
||||
* Tue Feb 8 2022 Jens Petersen <petersen@redhat.com> - 2.3.13-1
|
||||
- ghc_set_gcc_flags: disable _lto_cflags for all archs
|
||||
to address missing symbol linking errors across packages
|
||||
|
@ -14,7 +14,7 @@ LANG=C.utf8\
|
||||
%global _lto_cflags %{nil}\
|
||||
# -Wunused-label is extremely noisy\
|
||||
%ifarch s390x\
|
||||
CFLAGS="${CFLAGS:-$(echo %optflags | sed -e 's/-Wall //' -e 's/-Werror=format-security //')}"\
|
||||
CFLAGS="$(echo ${CFLAGS:-%optflags} | sed -e 's/-Wall //' -e 's/-Werror=format-security //')"\
|
||||
%else\
|
||||
CFLAGS="${CFLAGS:-%optflags}"\
|
||||
%endif\
|
||||
|
Loading…
Reference in New Issue
Block a user