From 2012e1ca32e094fae74114f5ecd3461e89829d95 Mon Sep 17 00:00:00 2001 From: "yan.yihao 10263201" Date: Mon, 28 Apr 2025 11:44:04 +0800 Subject: [PATCH] add support for RISC-V build --- glibc.spec | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/glibc.spec b/glibc.spec index 5fa5d7a..44d966d 100644 --- a/glibc.spec +++ b/glibc.spec @@ -1,4 +1,4 @@ -%define anolis_release 6 +%define anolis_release 7 %bcond_without testsuite %bcond_without benchtests @@ -865,9 +865,17 @@ update_gconv_modules_cache () /lib64/ld-linux-loongarch-lp64d.so.1 %endif +%ifarch riscv64 +/lib/ld-linux-riscv64-lp64d.so.1 +/lib64/lp64d +/usr/lib64/lp64d +%endif + /lib64/libBrokenLocale.so.1 -%ifnarch loongarch64 +%ifnarch loongarch64 riscv64 /lib64/libmvec.so.1 +%endif +%ifnarch loongarch64 /lib64/libanl.so.1 /lib64/libutil.so.1 %endif @@ -969,6 +977,7 @@ update_gconv_modules_cache () %files devel %ifnarch loongarch64 /usr/lib64/libanl.a +/usr/lib64/libanl.so %endif /usr/lib64/libc_nonshared.a /usr/lib64/libdl.a @@ -983,12 +992,13 @@ update_gconv_modules_cache () /usr/lib64/crti.o /usr/lib64/crtn.o /usr/lib64/gcrt1.o +%ifnarch riscv64 /usr/lib64/grcrt1.o /usr/lib64/rcrt1.o +%endif /usr/lib64/libBrokenLocale.so -%ifnarch loongarch64 +%ifnarch loongarch64 riscv64 /usr/lib64/libmvec.so -/usr/lib64/libanl.so %endif /usr/lib64/libc.so /usr/lib64/libm.so @@ -1065,7 +1075,7 @@ update_gconv_modules_cache () %{_libdir}/libc.a %{_libdir}/libm.a %{_libdir}/libresolv.a -%ifnarch loongarch64 +%ifnarch loongarch64 riscv64 %{_libdir}/libm-%{version}.a %{_libdir}/libmvec.a %endif @@ -1112,6 +1122,10 @@ update_gconv_modules_cache () %{_libdir}/libpthread_nonshared.a %changelog +* Sat Apr 26 2025 Yihao Yan - 2.38-7 +- Add support for riscv64 +- Add lp64d into glibc + * Wed Jan 15 2025 MayShao - 2.38-6 - x86: Set preferred CPU features and default NT threshold for Zhaoxin processors -- Gitee