Enable RISC-V (riscv64)

Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
This commit is contained in:
David Abdurachmanov 2018-09-13 08:41:37 +02:00
parent e84add587d
commit 677dafe90e
Signed by: davidlt
GPG Key ID: 7108702C938B13C1

View File

@ -19,7 +19,7 @@
%if "x%{?pre_release}" != "x" %if "x%{?pre_release}" != "x"
%define samba_release 0.%{main_release}.%{pre_release}%{?dist} %define samba_release 0.%{main_release}.%{pre_release}%{?dist}
%else %else
%define samba_release %{main_release}%{?dist} %define samba_release %{main_release}.0.riscv64%{?dist}
%endif %endif
# This is a network daemon, do a hardened build # This is a network daemon, do a hardened build
@ -39,7 +39,7 @@
%global with_vfs_cephfs 0 %global with_vfs_cephfs 0
%if 0%{?fedora} %if 0%{?fedora}
%ifarch aarch64 ppc64le s390x x86_64 %ifarch aarch64 ppc64le s390x x86_64 riscv64
%global with_vfs_cephfs 1 %global with_vfs_cephfs 1
%endif %endif
%endif %endif
@ -833,8 +833,10 @@ xzcat %{SOURCE0} | gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} -
# TODO: resolve underlinked python modules # TODO: resolve underlinked python modules
export python_LDFLAGS="$(echo %{__global_ldflags} | sed -e 's/-Wl,-z,defs//g')" export python_LDFLAGS="$(echo %{__global_ldflags} | sed -e 's/-Wl,-z,defs//g')"
# Use the gold linker # Use the gold linker, except RISC-V (riscv64), which does not have gold
%ifnarch riscv64
export LDFLAGS="%{__global_ldflags} -fuse-ld=gold" export LDFLAGS="%{__global_ldflags} -fuse-ld=gold"
%endif
%if 0%{?rhel} %if 0%{?rhel}
# Use Python 2 for the waf buildscript # Use Python 2 for the waf buildscript
@ -3831,6 +3833,8 @@ fi
%endif # with_clustering_support %endif # with_clustering_support
%changelog %changelog
* Thu Sep 13 2018 David Abdurachmanov <david.abdurachmanov@gmail.com> - 4.9.0rc5-3.0.riscv64
* Thu Sep 06 2018 Andreas Schneider <asn@redhat.com> - 4.9.0rc5-3 * Thu Sep 06 2018 Andreas Schneider <asn@redhat.com> - 4.9.0rc5-3
- Update to Samba 4.9.0rc5 - Update to Samba 4.9.0rc5