!12 [sync] PR-11: fix build error for loongarch64

From: @openeuler-sync-bot 
Reviewed-by: @wk333 
Signed-off-by: @wk333
This commit is contained in:
openeuler-ci-bot 2024-06-07 02:14:35 +00:00 committed by Gitee
commit 4cc9b2cc70
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 4334ce2b322f7f958606b9b6003d7e6feba052cf Mon Sep 17 00:00:00 2001
From: Wenlong Zhang <zhangwenlong@loongson.cn>
Date: Tue, 4 Jun 2024 08:48:30 +0000
Subject: [PATCH] fix build error for loongarch64
---
src/native/unix/configure | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/native/unix/configure b/src/native/unix/configure
index cbdc8bd..8079a65 100755
--- a/src/native/unix/configure
+++ b/src/native/unix/configure
@@ -3813,6 +3813,11 @@ printf "%s\n" "failed" >&6; }
supported_os="linux"
HOST_CPU=riscv64
;;
+ loongarch64)
+ CFLAGS="$CFLAGS -DCPU=\\\"loongarch64\\\""
+ supported_os="linux"
+ HOST_CPU=loongarch64
+ ;;
*)
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
printf "%s\n" "failed" >&6; }
--
2.43.0

View File

@ -1,6 +1,6 @@
Name: apache-commons-daemon Name: apache-commons-daemon
Version: 1.3.3 Version: 1.3.3
Release: 1 Release: 2
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
@ -14,6 +14,7 @@ Patch0001: apache-commons-daemon-JAVA_OS.patch
Patch0002: apache-commons-daemon-secondary.patch 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
%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
@ -63,6 +64,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
* Tue Jun 04 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 1.3.3-2
- fix build error for loongarch64
* Tue May 09 2023 Ge Wang <wang__ge@126.com> - 1.3.3-1 * Tue May 09 2023 Ge Wang <wang__ge@126.com> - 1.3.3-1
- Update to version 1.3.3 - Update to version 1.3.3