Add modifications for riscv64

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2023-04-14 18:57:58 +03:00
parent da8b6a2c9f
commit 94bc45401f
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
2 changed files with 6 additions and 3 deletions

View File

@ -8,7 +8,7 @@
Name: ghc-rpm-macros
Version: 2.5.2
Release: 3%{?dist}
Release: 3.0.riscv64%{?dist}
Summary: RPM macros for building Haskell packages for GHC
License: GPLv3+
@ -203,6 +203,9 @@ mkdir -p %{buildroot}%{_docdir}/ghc/html/libraries
%changelog
* Fri Apr 14 2023 David Abdurachmanov <davidlt@rivosinc.com> - 2.5.2-3.0.riscv64
- Add modifications for riscv64
* Mon Mar 27 2023 Jens Petersen <petersen@redhat.com> - 2.5.2-3
- f38: also obsolete regex-compat-tdfa

View File

@ -34,7 +34,7 @@ licensedirversion=%{?2:-%2}\
%define pkgname %{?1}%{!?1:%{pkg_name}}\
%define pkgver %{?2}%{!?2:%{version}}\
if [ -n dist/build/libHS%{pkgname}-%{pkgver}*.so ]; then\
%cabal haddock --html --hyperlink-source --hoogle %{?cabal_haddock_options}\
%cabal haddock %{?ghc_smp_mflags} --html --hyperlink-source --hoogle %{?cabal_haddock_options}\
fi\
%endif\
%{nil}
@ -77,7 +77,7 @@ fi\
%global _lto_cflags %{nil}\
%global __brp_strip_lto %{nil}\
# -Wunused-label is extremely noisy\
%ifarch s390x\
%ifarch s390x riscv64\
CFLAGS="$(echo ${CFLAGS:-%optflags} | sed -e 's/-Wall //' -e 's/-Werror=format-security //')"\
%else\
CFLAGS="${CFLAGS:-%optflags}"\