From 4b03b787465ef695eac90643945c282cb8180dab Mon Sep 17 00:00:00 2001 From: WeissonInc Date: Wed, 6 Jul 2022 10:59:34 +0800 Subject: [PATCH] add risc-v support Signed-off-by: Weisson --- glibc.spec | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/glibc.spec b/glibc.spec index f26bcdc..0c9b69a 100644 --- a/glibc.spec +++ b/glibc.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 ############################################################################## # We support the following options: # --with/--without, @@ -1127,6 +1127,16 @@ find . -type f -name '*.filelist' -exec rm -rf {} \; # Reload compiler and build options that were used during %%build. GCC=`cat Gcc` +%ifarch riscv64 +# RISC-V ABI wants to install everything in /lib64/lp64d or /usr/lib64/lp64d. +# Make these be symlinks to /lib64 or /usr/lib64 respectively. See: +# https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/DRHT5YTPK4WWVGL3GIN5BF2IKX2ODHZ3/ +for d in %{glibc_sysroot}%{_libdir} %{glibc_sysroot}/%{_lib}; do + mkdir -p $d + (cd $d && ln -sf . lp64d) +done +%endif + # Build and install: pushd build-%{target} %make_build install_root=%{glibc_sysroot} install @@ -2057,5 +2067,10 @@ update_gconv_modules_cache () %files -f compat-libpthread-nonshared.filelist -n compat-libpthread-nonshared %changelog +* Mon Jul 11 2022 Weisson - 2.35-2 +- Add support for riscv64 +- RISC-V ABI wants to install everything in /lib64/lp64d or /usr/lib64/lp64d. Make these be symlinks to /lib64 or /usr/lib64 respectively. +- See: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/DRHT5YTPK4WWVGL3GIN5BF2IKX2ODHZ3/ + * Tue Feb 22 2022 Chunmei Xu - 2.35-1 - upstream 2.35 release tarball and add patches from release/2.35/master