!460 在glibc-compat-2.17中增加libpthread_nonshared.a
From: @yang_yanchao Reviewed-by: @liqingqing_1229 Signed-off-by: @liqingqing_1229
This commit is contained in:
commit
81b4bec2f6
13
glibc.spec
13
glibc.spec
@ -65,7 +65,7 @@
|
|||||||
##############################################################################
|
##############################################################################
|
||||||
Name: glibc
|
Name: glibc
|
||||||
Version: 2.35
|
Version: 2.35
|
||||||
Release: 13
|
Release: 14
|
||||||
Summary: The GNU libc libraries
|
Summary: The GNU libc libraries
|
||||||
License: %{all_license}
|
License: %{all_license}
|
||||||
URL: http://www.gnu.org/software/glibc/
|
URL: http://www.gnu.org/software/glibc/
|
||||||
@ -365,7 +365,8 @@ Summary: provides pthread library with glibc-2.17
|
|||||||
|
|
||||||
%description compat-2.17
|
%description compat-2.17
|
||||||
This subpackage to provide the function of the glibc-2.17 pthread library.
|
This subpackage to provide the function of the glibc-2.17 pthread library.
|
||||||
Currently, provide pthread_condition function..
|
Currently, provide pthread_condition function.
|
||||||
|
To keep older applications compatible, glibc-compat-2.17 provides libpthread_nonshared.a
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
@ -563,6 +564,10 @@ install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT/etc/nsswitch.conf
|
|||||||
# This is for compat-2.17
|
# This is for compat-2.17
|
||||||
%if %{with compat_2_17}
|
%if %{with compat_2_17}
|
||||||
install -p -m 755 build-%{target}/nptl/libpthread-2.17.so $RPM_BUILD_ROOT%{_libdir}
|
install -p -m 755 build-%{target}/nptl/libpthread-2.17.so $RPM_BUILD_ROOT%{_libdir}
|
||||||
|
# Build an empty libpthread_nonshared.a for compatiliby with applications
|
||||||
|
# that have old linker scripts that reference this file.
|
||||||
|
ar cr %{glibc_sysroot}%{_prefix}/%{_lib}/libpthread_nonshared.a
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# This is for ncsd - in glibc 2.2
|
# This is for ncsd - in glibc 2.2
|
||||||
@ -835,6 +840,7 @@ echo "%{_prefix}/libexec/glibc-benchtests/validate_benchout.py*" >> benchtests.f
|
|||||||
# glibc compat-2.17 sub-package
|
# glibc compat-2.17 sub-package
|
||||||
##############################################################################
|
##############################################################################
|
||||||
echo "%{_libdir}/libpthread-2.17.so" >> compat-2.17.filelist
|
echo "%{_libdir}/libpthread-2.17.so" >> compat-2.17.filelist
|
||||||
|
echo "%{_libdir}/libpthread_nonshared.a" >> compat-2.17.filelist
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
reliantlib=""
|
reliantlib=""
|
||||||
@ -1251,6 +1257,9 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jul 5 2022 Yang Yanchao <yangyanchao6@huawei.com> - 2.35-14
|
||||||
|
- add libpthread_nonshared.a in glibc-compat-2.17 for old applications
|
||||||
|
|
||||||
* Tue Jun 28 2022 Qingqing Li <liqingqing3@huawei.com> - 2.35-13
|
* Tue Jun 28 2022 Qingqing Li <liqingqing3@huawei.com> - 2.35-13
|
||||||
- aarch64: add -mno-outline-atomics to prevent mallocT2_xx performance regression
|
- aarch64: add -mno-outline-atomics to prevent mallocT2_xx performance regression
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user