From 114d5bab3a81c3be03faa1637e51ee1c8432fbc7 Mon Sep 17 00:00:00 2001 From: Jingyun Hua Date: Tue, 15 Nov 2022 02:25:24 +0000 Subject: [PATCH] add build flags for weak symbols on loongarch64 Signed-off-by: Jingyun Hua --- tcl.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tcl.spec b/tcl.spec index 1e7a259..52dcc15 100644 --- a/tcl.spec +++ b/tcl.spec @@ -2,7 +2,7 @@ Name: tcl Version: 8.6.12 -Release: 1 +Release: 2 Epoch: 1 Summary: The Tool Command Language implementation License: BSD @@ -53,7 +53,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 @@ -122,6 +126,9 @@ make test %{_mandir}/mann/* %changelog +* Tue Nov 15 2022 huajingyun - 1:8.6.12-2 +- add build flags for weak symbols on loongarch64 + * Thu Apr 21 2022 zoulin - 1:8.6.12-1 - Type:enhancement - ID:NA -- Gitee