backport musl-1.2.4 add loongarch64 support

This commit is contained in:
wangshuo 2024-06-20 03:12:55 +08:00
parent 0b4350966d
commit c6a47479f2
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