|
|
|
@ -23,8 +23,10 @@ fi
|
|
|
|
|
%cabal_configure\
|
|
|
|
|
%ghc_check_bootstrap\
|
|
|
|
|
%global _hardened_ldflags %{nil}\
|
|
|
|
|
%ifnarch aarch64\
|
|
|
|
|
CFLAGS="${CFLAGS:-%optflags}"; export CFLAGS\
|
|
|
|
|
LDFLAGS="${LDFLAGS:-%{?__global_ldflags}}"; export LDFLAGS\
|
|
|
|
|
%endif\
|
|
|
|
|
%cabal configure %{?cabal_verbose} --prefix=%{_prefix} --libdir=%{_libdir} --docdir=%{_defaultlicensedir}/%{name} --libsubdir='$compiler/$pkgkey' --datasubdir='$pkgid' --ghc %{!?ghc_without_dynamic:--enable-executable-dynamic} %{?with_tests:--enable-tests} --ghc-options="$(echo ' '$CFLAGS | sed -e 's/ / -optc/g') $(echo ' '$LDFLAGS | sed -e 's/ / -optl/g')" %{?cabal_configure_options} $cabal_configure_extra_options
|
|
|
|
|
|
|
|
|
|
# install
|
|
|
|
|