diff --git a/tcl.spec b/tcl.spec index 1e7a259ad10e341f44d7989336dec3dee4ba667f..52dcc158bac16a1876043e1142b91fae6a722e02 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