add ld.bfd for loongarch

This commit is contained in:
doupengda 2023-03-07 10:39:38 +08:00
parent eed1a019d9
commit 23b559ff3c

View File

@ -48,7 +48,7 @@
Name: samba
Version: 4.17.5
Release: 2
Release: 3
Summary: A suite for Linux to interoperate with Windows
License: GPLv3+ and LGPLv3+
@ -569,8 +569,10 @@ rm -f lib/crypto/{aes,rijndael}*.c
export python_LDFLAGS="$(echo %{__global_ldflags} | sed -e 's/-Wl,-z,defs//g')"
%ifnarch riscv64
%ifnarch riscv64 loongarch64
export LDFLAGS="%{__global_ldflags} -fuse-ld=gold"
%else
export LDFLAGS="%{__global_ldflags} -fuse-ld=bfd"
%endif
%configure \
@ -3479,6 +3481,12 @@ fi
%endif
%changelog
* Tue Mar 7 2023 doupengda <doupengda@loongson.cn> - 4.17.5-3
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:add ld.bfd for loongarch
* Wed Feb 08 2023 laokz <zhangkai@iscas.ac.cn> - 4.17.5-2
- Type:enhancement
- ID:NA