!16 add sw_64 support

From: @hailianguniontech 
Reviewed-by: @wk333 
Signed-off-by: @wk333
This commit is contained in:
openeuler-ci-bot 2025-03-11 02:15:31 +00:00 committed by Gitee
commit 4bc3e218e4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,28 @@
From 582cd8b81a7578411103a0978dfe1d19c5d75ad1 Mon Sep 17 00:00:00 2001
From: Hailiang <mahailiang@uniontech.com>
Date: Mon, 10 Mar 2025 14:10:36 +0800
Subject: [PATCH] add sw_64 support
---
src/native/unix/configure | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/native/unix/configure b/src/native/unix/configure
index 8079a65..cbd75d7 100755
--- a/src/native/unix/configure
+++ b/src/native/unix/configure
@@ -3818,6 +3818,11 @@ printf "%s\n" "failed" >&6; }
supported_os="linux"
HOST_CPU=loongarch64
;;
+ sw_64)
+ CFLAGS="$CFLAGS -DCPU=\\\"sw_64\\\""
+ supported_os="linux"
+ HOST_CPU=sw_64
+ ;;
*)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
printf "%s\n" "failed" >&6; }
--
2.20.1

View File

@ -1,6 +1,6 @@
Name: apache-commons-daemon Name: apache-commons-daemon
Version: 1.3.3 Version: 1.3.3
Release: 2 Release: 3
Summary: Defines API to support an alternative invocation mechanism Summary: Defines API to support an alternative invocation mechanism
License: ASL 2.0 License: ASL 2.0
URL: http://commons.apache.org/daemon URL: http://commons.apache.org/daemon
@ -15,6 +15,7 @@ Patch0002: apache-commons-daemon-secondary.patch
Patch0003: apache-commons-daemon-aarch64.patch Patch0003: apache-commons-daemon-aarch64.patch
Patch0004: 0001-Fix-build-failed-on-openEuler-RISC-V.patch Patch0004: 0001-Fix-build-failed-on-openEuler-RISC-V.patch
Patch0005: 0001-fix-build-error-for-loongarch64.patch Patch0005: 0001-fix-build-error-for-loongarch64.patch
Patch0006: 0001-add-sw_64-support.patch
%description %description
The scope of this package is to define an API in line with the current Java Platform APIs to support The scope of this package is to define an API in line with the current Java Platform APIs to support
@ -64,6 +65,9 @@ install -Dpm 644 src/native/unix/jsvc.1 $RPM_BUILD_ROOT%{_mandir}/man1/jsvc.1
%{_mandir}/man1/jsvc.1* %{_mandir}/man1/jsvc.1*
%changelog %changelog
* Mon Mar 10 2025 mahailiang <mahailiang@uniontech.com> - 1.3.3-3
- add sw_64 support
* Tue Jun 04 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 1.3.3-2 * Tue Jun 04 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 1.3.3-2
- fix build error for loongarch64 - fix build error for loongarch64