apache-commons-daemon/0001-fix-build-error-for-loongarch64.patch
Wenlong Zhang a6b8a56329 fix build error for loongarch64
(cherry picked from commit 8a9e00e622dedb576f3b736bac8c815b35fec969)
2024-06-07 10:10:16 +08:00

29 lines
794 B
Diff

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