do not set -Wall on aarch64 and s390x
-Wunused-label is extremely noisy [1 of 2] Compiling Text.Html.BlockTable ( Text/Html/BlockTable.hs, dist/build/Text/Html/BlockTable.o ) /tmp/ghcbd98_0/ghc_2.hc: In function ‘htmlzm1zi0zi1zi2zm8wVtehjIxUEBYXzzRus7033_TextziHtmlziBlockTable_getMatrix_entry’: /tmp/ghcbd98_0/ghc_2.hc:63:1: error: warning: label ‘_c2qm’ defined but not used [-Wunused-label] _c2qm:
This commit is contained in:
parent
ea9bb846fc
commit
272d2b048a
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
Name: ghc-rpm-macros
|
Name: ghc-rpm-macros
|
||||||
Version: 1.6.50
|
Version: 1.6.50
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: RPM macros for building Haskell packages for GHC
|
Summary: RPM macros for building Haskell packages for GHC
|
||||||
|
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
@ -161,6 +161,9 @@ EOF
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 10 2017 Jens Petersen <petersen@redhat.com> - 1.6.50-4
|
||||||
|
- do not set -Wall on aarch64 and s390x since -Wunused-label is extremely noisy
|
||||||
|
|
||||||
* Fri Nov 10 2017 Jens Petersen <petersen@redhat.com> - 1.6.50-3
|
* Fri Nov 10 2017 Jens Petersen <petersen@redhat.com> - 1.6.50-3
|
||||||
- temporarily set Wall for all archs to see which are noisy
|
- temporarily set Wall for all archs to see which are noisy
|
||||||
|
|
||||||
|
11
macros.ghc
11
macros.ghc
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user