!31 [sync] PR-25: add loongarch64 support

From: @openeuler-sync-bot 
Reviewed-by: @juyin 
Signed-off-by: @juyin
This commit is contained in:
openeuler-ci-bot 2024-12-10 02:15:41 +00:00 committed by Gitee
commit c21052a25e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 1461 additions and 3 deletions

File diff suppressed because it is too large Load Diff

View File

@ -19,6 +19,10 @@
%ifarch %{mips32}
%global _musl_target_cpu mips
%endif
%ifarch loongarch64
%global _musl_target_cpu loongarch64
%endif
%ifarch ppc
%global _musl_target_cpu powerpc
@ -33,7 +37,7 @@
%endif
%endif
%ifnarch %{ix86} %{arm} %{mips} %{power64} ppc
%ifnarch %{ix86} %{arm} %{mips} %{power64} ppc loongarch64
%global _musl_target_cpu %{_target_cpu}
%endif
@ -46,13 +50,15 @@
Name: musl
Version: 1.2.4
Release: 2
Release: 3
Summary: An implementation of the standard library for Linux-based systems
License: MIT
URL: https://musl.libc.org
Source0: %{url}/releases/%{name}-%{version}.tar.gz
Patch0: backport-musl-1.2.4-add-loongarch64-support.patch
BuildRequires: gcc
BuildRequires: make
BuildRequires: gnupg2
@ -124,7 +130,7 @@ This package provides a wrapper around gcc to compile
programs and libraries with musl easily.
%prep
%autosetup
%autosetup -p1
%build
%ifarch %{power64}
@ -185,6 +191,10 @@ ln -sr %{buildroot}%{_libdir}/libc.so %{buildroot}%{_libdir}/libutil.so.1
%{_libdir}/musl-gcc.specs
%changelog
* Tue Jun 25 2024 wangshuo <wangshuo@kylinos.cn> - 1.2.4-3
- Add Patch0: backport-musl-1.2.4-add-loongarch64-support.patch
- Add _musl_target_cpu loongarch64
* Thu Mar 14 2024 peng.zou <peng.zou@shingroup.cn> - 1.2.4-2
- fix compile error about unsupported long double type in ppc64le