silence C Wunused-label warnings flood on s390x again
This commit is contained in:
parent
298bd4e3dd
commit
5b2544a8cc
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
Name: ghc-rpm-macros
|
Name: ghc-rpm-macros
|
||||||
Version: 1.9.5
|
Version: 1.9.5
|
||||||
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+
|
||||||
@ -175,6 +175,9 @@ EOF
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 24 2018 Jens Petersen <petersen@redhat.com> - 1.9.5-4
|
||||||
|
- silence C compiler Wunused-label warnings flood on s390x again
|
||||||
|
|
||||||
* Tue Oct 23 2018 Jens Petersen <petersen@redhat.com> - 1.9.5-3
|
* Tue Oct 23 2018 Jens Petersen <petersen@redhat.com> - 1.9.5-3
|
||||||
- f29: obsolete content-store, bdcs, and bdcs-api
|
- f29: obsolete content-store, bdcs, and bdcs-api
|
||||||
|
|
||||||
|
@ -11,7 +11,13 @@ LANG=en_US.utf8\
|
|||||||
|
|
||||||
|
|
||||||
%ghc_set_gcc_flags\
|
%ghc_set_gcc_flags\
|
||||||
export CFLAGS="${CFLAGS:-%optflags}"\
|
# -Wunused-label is extremely noisy\
|
||||||
|
%ifarch s390x\
|
||||||
|
CFLAGS="${CFLAGS:-$(echo %optflags | sed -e 's/-Wall //')}"\
|
||||||
|
%else\
|
||||||
|
CFLAGS="${CFLAGS:-%optflags}"\
|
||||||
|
%endif\
|
||||||
|
export CFLAGS\
|
||||||
%global _hardened_ldflags %{nil}\
|
%global _hardened_ldflags %{nil}\
|
||||||
export LDFLAGS="${LDFLAGS:-%{?__global_ldflags}}"\
|
export LDFLAGS="${LDFLAGS:-%{?__global_ldflags}}"\
|
||||||
%{nil}
|
%{nil}
|
||||||
|
Loading…
Reference in New Issue
Block a user