add risc-v support
Signed-off-by: Weisson <wenshu.hx@alibaba-inc.com>
This commit is contained in:
parent
c72de9c3c7
commit
4b03b78746
1 changed files with 16 additions and 1 deletions
17
glibc.spec
17
glibc.spec
|
@ -1,4 +1,4 @@
|
||||||
%define anolis_release 1
|
%define anolis_release 2
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# We support the following options:
|
# We support the following options:
|
||||||
# --with/--without,
|
# --with/--without,
|
||||||
|
@ -1127,6 +1127,16 @@ find . -type f -name '*.filelist' -exec rm -rf {} \;
|
||||||
# Reload compiler and build options that were used during %%build.
|
# Reload compiler and build options that were used during %%build.
|
||||||
GCC=`cat Gcc`
|
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:
|
# Build and install:
|
||||||
pushd build-%{target}
|
pushd build-%{target}
|
||||||
%make_build install_root=%{glibc_sysroot} install
|
%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
|
%files -f compat-libpthread-nonshared.filelist -n compat-libpthread-nonshared
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jul 11 2022 Weisson <wenshu.hx@alibaba-inc.com> - 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 <xuchunmei@linux.alibaba.com> - 2.35-1
|
* Tue Feb 22 2022 Chunmei Xu <xuchunmei@linux.alibaba.com> - 2.35-1
|
||||||
- upstream 2.35 release tarball and add patches from release/2.35/master
|
- upstream 2.35 release tarball and add patches from release/2.35/master
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue