From 7b4988b0f771bde031bc6c25b27c441a79807948 Mon Sep 17 00:00:00 2001 From: Huang Yang Date: Thu, 2 Jun 2022 15:27:07 +0800 Subject: [PATCH 1/2] add build flags for weak symbols on loongarch64 --- tcl.spec | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tcl.spec b/tcl.spec index d947075..2f16ba2 100644 --- a/tcl.spec +++ b/tcl.spec @@ -58,7 +58,11 @@ The development files for tcl. cd unix autoconf %configure --enable-threads --enable-symbols --enable-shared --enable-dtrace +%ifnarch loongarch64 %make_build CFLAGS="%{optflags}" TCL_LIBRARY=%{_datadir}/%{name}%{MAJOR} +%else +%make_build CFLAGS="-Wl,--whole-archive -lpthread -Wl,--no-whole-archive" TCL_LIBRARY=%{_datadir}/%{name}%{MAJOR} +%endif %install cd unix @@ -87,11 +91,9 @@ done sed -i -e "s|$PWD/unix|%{_libdir}|; s|$PWD|%{_includedir}/%{name}-private|" %{buildroot}/%{_libdir}/%{name}Config.sh rm -rf %{buildroot}/%{_datadir}/%{name}%{MAJOR}/ldAix -%ifnarch loongarch64 %check cd unix make test -%endif %pre @@ -129,8 +131,8 @@ make test %{_mandir}/mann/* %changelog -* Wed Apr 27 2022 liyanan - 1:8.6.10-4 -- Disable test cases in loongarch64 branch +* Wed May 25 2022 Peng Fan - 1:86.10-4 +- add build flags for weak symbols on loongarch64 * Fri May 28 2021 yangzhuangzhuang - 1:8.6.10-3 - Type:bugfix -- Gitee From 1d698fc80f0d2f1097cd8ed6c7b049f6977c1472 Mon Sep 17 00:00:00 2001 From: streamlet_hy Date: Tue, 7 Jun 2022 02:22:32 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0release=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=8F=B7=E5=92=8C=E6=97=A5=E5=BF=97=E4=BF=A1=E6=81=AF=EF=BC=8C?= =?UTF-8?q?=E5=BC=80=E5=90=AFcheck?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tcl.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tcl.spec b/tcl.spec index 2f16ba2..ac252ca 100644 --- a/tcl.spec +++ b/tcl.spec @@ -2,7 +2,7 @@ Name: tcl Version: 8.6.10 -Release: 4 +Release: 5 Epoch: 1 Summary: The Tool Command Language implementation License: BSD @@ -131,9 +131,12 @@ make test %{_mandir}/mann/* %changelog -* Wed May 25 2022 Peng Fan - 1:86.10-4 +* Wed May 25 2022 Peng Fan - 1:86.10-5 - add build flags for weak symbols on loongarch64 +* Wed Apr 27 2022 liyanan - 1:8.6.10-4 +- Disable test cases in loongarch64 branch + * Fri May 28 2021 yangzhuangzhuang - 1:8.6.10-3 - Type:bugfix - ID:NA -- Gitee