try not setting CFLAGS and LDFLAGS for aarch64 (for ghc-7.10.3)
- -Wall is very noisy (unused warnings) - dynlink failing
This commit is contained in:
parent
f279bff6ad
commit
46a6bfd423
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
Name: ghc-rpm-macros
|
Name: ghc-rpm-macros
|
||||||
Version: 1.6.9
|
Version: 1.6.9
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Summary: RPM macros for building Haskell packages for GHC
|
Summary: RPM macros for building Haskell packages for GHC
|
||||||
|
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
@ -137,6 +137,9 @@ EOF
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Oct 17 2016 Jens Petersen <petersen@redhat.com> - 1.6.9-5
|
||||||
|
- for aarch64 do not set CFLAGS and LDFLAGS
|
||||||
|
|
||||||
* Wed Oct 12 2016 Jens Petersen <petersen@redhat.com> - 1.6.9-4
|
* Wed Oct 12 2016 Jens Petersen <petersen@redhat.com> - 1.6.9-4
|
||||||
- remove Agda obsoletes
|
- remove Agda obsoletes
|
||||||
|
|
||||||
|
@ -23,8 +23,10 @@ fi
|
|||||||
%cabal_configure\
|
%cabal_configure\
|
||||||
%ghc_check_bootstrap\
|
%ghc_check_bootstrap\
|
||||||
%global _hardened_ldflags %{nil}\
|
%global _hardened_ldflags %{nil}\
|
||||||
|
%ifnarch aarch64\
|
||||||
CFLAGS="${CFLAGS:-%optflags}"; export CFLAGS\
|
CFLAGS="${CFLAGS:-%optflags}"; export CFLAGS\
|
||||||
LDFLAGS="${LDFLAGS:-%{?__global_ldflags}}"; export LDFLAGS\
|
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
|
%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
|
# install
|
||||||
|
Loading…
Reference in New Issue
Block a user