From 2ee682c3cfc095c09da0a25d82d09da9051bf776 Mon Sep 17 00:00:00 2001 From: songmingliang Date: Tue, 17 May 2022 20:31:31 +0800 Subject: [PATCH] build: support loongarch64 platform --- samba.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/samba.spec b/samba.spec index 3aaa858..5741650 100644 --- a/samba.spec +++ b/samba.spec @@ -1,3 +1,4 @@ +%define anolis_release .0.1 # The testsuite is disabled by default. # # To build and run the tests use: @@ -169,7 +170,7 @@ Name: samba Version: %{samba_version} -Release: %{samba_release}%{?dist} +Release: %{samba_release}%{anolis_release}%{?dist} %if 0%{?rhel} Epoch: 0 @@ -1117,8 +1118,12 @@ 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')" +%ifarch loongarch64 +export LDFLAGS="%{__global_ldflags} -fuse-ld=bfd" +%else # Use the gold linker export LDFLAGS="%{__global_ldflags} -fuse-ld=gold" +%endif %configure \ --enable-fhs \ @@ -4114,6 +4119,9 @@ fi %endif %changelog +* Fri Oct 28 2022 Jacob Wang - 4.15.5-10.0.1 +- Support loongarch64 platform + * Mon Sep 12 2022 Andreas Schneider - 4.15.5-10 - resolves: rhbz#2126041 - Do not require samba package in python3-samba -- Gitee