replace %ghc_set_cflags with simplified %ghc_set_gcc_flags

tested in ghc.spec in ghc:8.4 module
epel9
Jens Petersen 6 years ago
parent 4972b52b10
commit d190fa9b04

@ -10,7 +10,7 @@
#%%global without_hscolour 1 #%%global without_hscolour 1
Name: ghc-rpm-macros Name: ghc-rpm-macros
Version: 1.9.2 Version: 1.9.3
Release: 1%{?dist} Release: 1%{?dist}
Summary: RPM macros for building Haskell packages for GHC Summary: RPM macros for building Haskell packages for GHC
@ -170,6 +170,9 @@ EOF
%changelog %changelog
* Fri Oct 5 2018 Jens Petersen <petersen@redhat.com> - 1.9.3-1
- replace ghc_set_cflags with simplified ghc_set_gcc_flags
* Tue Jul 31 2018 Jens Petersen <petersen@redhat.com> - 1.9.2-1 * Tue Jul 31 2018 Jens Petersen <petersen@redhat.com> - 1.9.2-1
- inject a Setup.hs if none shipped - inject a Setup.hs if none shipped

@ -9,14 +9,10 @@ LANG=en_US.utf8\
# compiler version # compiler version
%ghc_version %{!?ghc_version_override:%(ghc --numeric-version)}%{?ghc_version_override} %ghc_version %{!?ghc_version_override:%(ghc --numeric-version)}%{?ghc_version_override}
%ghc_set_cflags\
# -Wunused-label is extremely noisy\ %ghc_set_gcc_flags\
%ifarch aarch64 s390x\ export CFLAGS="${CFLAGS:-%optflags}"\
CFLAGS="${CFLAGS:-$(echo %optflags | sed -e 's/-Wall //' -e 's/-Werror=format-security //')}"\ export LDFLAGS="${LDFLAGS:-%{?__global_ldflags}}"\
%else\
CFLAGS="${CFLAGS:-%optflags}"\
%endif\
export CFLAGS\
%{nil} %{nil}
# configure # configure

Loading…
Cancel
Save