From 9f462c360f6039f679d4d2ef20dabf4d4e643f58 Mon Sep 17 00:00:00 2001 From: Xinhui Yang Date: Wed, 26 Aug 2026 22:45:11 +0800 Subject: [PATCH] perl: add support for loongarch64 Config parameters grabbed from standard libraries and existing Perl build tree. Tested good on both glibc and musl with simple scripts. Signed-off-by: Xinhui Yang --- lang/perl/Makefile | 2 +- lang/perl/files/loongarch64.config | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 lang/perl/files/loongarch64.config diff --git a/lang/perl/Makefile b/lang/perl/Makefile index b3eb5a03f3..23de7a91a1 100644 --- a/lang/perl/Makefile +++ b/lang/perl/Makefile @@ -11,7 +11,7 @@ include perlver.mk PKG_NAME:=perl PKG_VERSION:=$(PERL_VERSION) -PKG_RELEASE:=6 +PKG_RELEASE:=7 PKG_SOURCE_URL:=https://www.cpan.org/src/5.0 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz diff --git a/lang/perl/files/loongarch64.config b/lang/perl/files/loongarch64.config new file mode 100644 index 0000000000..759eb22aa8 --- /dev/null +++ b/lang/perl/files/loongarch64.config @@ -0,0 +1,21 @@ +# Architecture definitions +owrt:arch=loongarch64 +owrt:bits=64 +owrt:endian=little + +# Signals, from installed standard headers (asm-generic/signal.h) +owrt:sig_count=64 +owrt:sigs='ZERO HUP INT QUIT ILL TRAP ABRT BUS FPE KILL USR1 SEGV USR2 PIPE ALRM TERM STKFLT CHLD CONT STOP TSTP TTIN TTOU URG XCPU XFSZ VTALRM PROF WINCH IO PWR SYS' +owrt:sig_name_extra='IOT CLD POLL UNUSED' +owrt:sig_num_extra='6 17 29 31' + +# Took from existing Perl 5.40 build. +d_casti32='define' +d_long_double_style_ieee='define' +d_long_double_style_ieee_std='define' +d_modflproto='define' +doublekind='3' +fpossize='16' +longdblkind='1' +need_va_copy='undef' +quadkind='2'