%cabal_configure: use %ghc_set_gcc_flags

This commit is contained in:
Jens Petersen 2018-10-05 19:02:12 +09:00
parent 6499cbc4e2
commit 55f62273c3
2 changed files with 6 additions and 3 deletions

View File

@ -10,8 +10,8 @@
#%%global without_hscolour 1
Name: ghc-rpm-macros
Version: 1.9.3
Release: 2%{?dist}
Version: 1.9.4
Release: 1%{?dist}
Summary: RPM macros for building Haskell packages for GHC
License: GPLv3+
@ -170,6 +170,9 @@ EOF
%changelog
* Fri Oct 5 2018 Jens Petersen <petersen@redhat.com> - 1.9.4-1
- cabal_configure now uses ghc_set_gcc_flags
* Fri Oct 5 2018 Jens Petersen <petersen@redhat.com> - 1.9.3-1
- disable dynamic linking of executables for better portability
- replace ghc_set_cflags with simplified ghc_set_gcc_flags

View File

@ -17,7 +17,7 @@ export LDFLAGS="${LDFLAGS:-%{?__global_ldflags}}"\
# configure
%cabal_configure\
%ghc_set_cflags\
%ghc_set_gcc_flags\
%global _hardened_ldflags %{nil}\
LDFLAGS="${LDFLAGS:-%{?__global_ldflags}}"; export LDFLAGS\
if ! [ -f Setup.hs -o -f Setup.lhs ]; then\