build: Add loongarch64 support
Signed-off-by: Jingyun Hua <huajingyun@loongson.cn>
This commit is contained in:
parent
a310099e51
commit
6adc8e2c86
2 changed files with 16443 additions and 1 deletions
16424
0001-Add-LoongArch-support-for-glibc-2.28.patch
Normal file
16424
0001-Add-LoongArch-support-for-glibc-2.28.patch
Normal file
File diff suppressed because it is too large
Load diff
20
glibc.spec
20
glibc.spec
|
@ -1,4 +1,4 @@
|
|||
%define anolis_release .0.1
|
||||
%define anolis_release .0.2
|
||||
%define glibcsrcdir glibc-2.28
|
||||
%define glibcversion 2.28
|
||||
%define glibcrelease 164%{anolis_release}%{?dist}
|
||||
|
@ -728,6 +728,7 @@ Patch589: glibc-elf-Align-argument-of-__munmap-to-page-size-BZ-28676-3.patch
|
|||
Patch590: glibc-Support-target-specific-ALIGN-for-variable-alignment-4.patch
|
||||
Patch591: glibc-elf-Fix-tst-align3.patch
|
||||
|
||||
Patch10000: 0001-Add-LoongArch-support-for-glibc-2.28.patch
|
||||
##############################################################################
|
||||
# Continued list of core "glibc" package information:
|
||||
##############################################################################
|
||||
|
@ -1434,6 +1435,13 @@ build()
|
|||
%ifarch %{ix86}
|
||||
--disable-multi-arch \
|
||||
%endif
|
||||
%ifarch loongarch64
|
||||
--enable-obsolete-nsl \
|
||||
--enable-stackguard-randomization \
|
||||
--with-selinux \
|
||||
--enable-shared \
|
||||
--enable-obsolete-rpc \
|
||||
%endif
|
||||
%if %{without werror}
|
||||
--disable-werror \
|
||||
%endif
|
||||
|
@ -1991,6 +1999,13 @@ for module in compat files dns; do
|
|||
>> glibc.filelist
|
||||
done
|
||||
grep -e "libmemusage.so" -e "libpcprofile.so" master.filelist >> glibc.filelist
|
||||
%ifarch loongarch64
|
||||
cat master.filelist \
|
||||
| grep -E \
|
||||
-e "^\/%{_lib}\/libnss_nisplus*" \
|
||||
-e "^\/%{_lib}\/libnss_nis*" \
|
||||
>> glibc.filelist
|
||||
%endif
|
||||
|
||||
###############################################################################
|
||||
# glibc-devel
|
||||
|
@ -2639,6 +2654,9 @@ fi
|
|||
%files -f compat-libpthread-nonshared.filelist -n compat-libpthread-nonshared
|
||||
|
||||
%changelog
|
||||
* Wed Mar 9 2022 huajingyun <huajingyun@loongson.cn> - 2.28-164.0.2
|
||||
- add loongarch64 support.
|
||||
|
||||
* Mon Feb 7 2022 Rongwei Wang <rongwei.wang@linux.alibaba.com> - 2.28-164.0.1
|
||||
- elf: Properly align PT_LOAD segments
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue