disable -Werror=format-security too on s390x

cc1: error: -Wformat-security ignored without -Wformat [-Werror=format-security]
cc1: some warnings being treated as errors
`gcc' failed in phase `C Compiler'. (Exit code: 1)
epel9
Jens Petersen 6 years ago
parent 5b2544a8cc
commit 4e2983c83c

@ -11,7 +11,7 @@
Name: ghc-rpm-macros
Version: 1.9.5
Release: 4%{?dist}
Release: 5%{?dist}
Summary: RPM macros for building Haskell packages for GHC
License: GPLv3+
@ -175,6 +175,9 @@ EOF
%changelog
* Thu Oct 25 2018 Jens Petersen <petersen@redhat.com> - 1.9.5-5
- need to disable -Werror=format-security too on s390x
* Wed Oct 24 2018 Jens Petersen <petersen@redhat.com> - 1.9.5-4
- silence C compiler Wunused-label warnings flood on s390x again

@ -13,7 +13,7 @@ LANG=en_US.utf8\
%ghc_set_gcc_flags\
# -Wunused-label is extremely noisy\
%ifarch s390x\
CFLAGS="${CFLAGS:-$(echo %optflags | sed -e 's/-Wall //')}"\
CFLAGS="${CFLAGS:-$(echo %optflags | sed -e 's/-Wall //' -e 's/-Werror=format-security //')}"\
%else\
CFLAGS="${CFLAGS:-%optflags}"\
%endif\

Loading…
Cancel
Save