From 677dafe90e7b3ce427b8a0ec4f77d6ff04cdb867 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Thu, 13 Sep 2018 08:41:37 +0200 Subject: [PATCH] Enable RISC-V (riscv64) Signed-off-by: David Abdurachmanov --- samba.spec | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/samba.spec b/samba.spec index c255109..3030df8 100644 --- a/samba.spec +++ b/samba.spec @@ -19,7 +19,7 @@ %if "x%{?pre_release}" != "x" %define samba_release 0.%{main_release}.%{pre_release}%{?dist} %else -%define samba_release %{main_release}%{?dist} +%define samba_release %{main_release}.0.riscv64%{?dist} %endif # This is a network daemon, do a hardened build @@ -39,7 +39,7 @@ %global with_vfs_cephfs 0 %if 0%{?fedora} -%ifarch aarch64 ppc64le s390x x86_64 +%ifarch aarch64 ppc64le s390x x86_64 riscv64 %global with_vfs_cephfs 1 %endif %endif @@ -833,8 +833,10 @@ xzcat %{SOURCE0} | gpgv2 --quiet --keyring %{SOURCE2} %{SOURCE1} - # TODO: resolve underlinked python modules 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" +%endif %if 0%{?rhel} # Use Python 2 for the waf buildscript @@ -3831,6 +3833,8 @@ fi %endif # with_clustering_support %changelog +* Thu Sep 13 2018 David Abdurachmanov - 4.9.0rc5-3.0.riscv64 + * Thu Sep 06 2018 Andreas Schneider - 4.9.0rc5-3 - Update to Samba 4.9.0rc5