!36 add loongarch support.

From: @huajingyun 
Reviewed-by: @ziyangc 
Signed-off-by: @ziyangc
This commit is contained in:
openeuler-ci-bot 2022-11-18 07:13:55 +00:00 committed by Gitee
commit 68663a6e26
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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 <huajingyun@loongson.cn> - 1:8.6.12-2
- add build flags for weak symbols on loongarch64
* Thu Apr 21 2022 zoulin <zoulin13@h-partners.com> - 1:8.6.12-1
- Type:enhancement
- ID:NA