@ -26,10 +26,13 @@ fi
%cabal_configure\
%cabal_configure\
%ghc_check_bootstrap\
%ghc_check_bootstrap\
%global _hardened_ldflags %{nil}\
%global _hardened_ldflags %{nil}\
# -Wunused-label is extremely noisy: remove for ghc-8.0\
# -Wunused-label is extremely noisy\
#%%ifnarch aarch64 ppc64 ppc64le s390x\
%ifarch aarch64 s390x\
CFLAGS="${CFLAGS:-%optflags}"; export CFLAGS\
CFLAGS="${CFLAGS:-$(echo %optflags | sed -e s/-Wall//)}"\
#%%endif\
%else\
CFLAGS="${CFLAGS:-%optflags}"\
%endif\
export CFLAGS\
LDFLAGS="${LDFLAGS:-%{?__global_ldflags}}"; export LDFLAGS\
LDFLAGS="${LDFLAGS:-%{?__global_ldflags}}"; export LDFLAGS\
%cabal --version\
%cabal --version\
%cabal configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{_ghcdocdir} --libsubdir='$compiler/$pkgkey' --datasubdir='$pkgid' --ghc %{!?ghc_without_dynamic:--enable-executable-dynamic} %{?with_tests:--enable-tests} %{?ghc_subpackaging:--user}%{!?ghc_subpackaging:--global} --ghc-options="${CFLAGS:+$(echo ' '$CFLAGS | sed -e 's/ / -optc/g')} ${LDFLAGS:+$(echo ' '$LDFLAGS | sed -e 's/ / -optl/g')}" %{?cabal_configure_options} $cabal_configure_extra_options
%cabal configure --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{_ghcdocdir} --libsubdir='$compiler/$pkgkey' --datasubdir='$pkgid' --ghc %{!?ghc_without_dynamic:--enable-executable-dynamic} %{?with_tests:--enable-tests} %{?ghc_subpackaging:--user}%{!?ghc_subpackaging:--global} --ghc-options="${CFLAGS:+$(echo ' '$CFLAGS | sed -e 's/ / -optc/g')} ${LDFLAGS:+$(echo ' '$LDFLAGS | sed -e 's/ / -optl/g')}" %{?cabal_configure_options} $cabal_configure_extra_options