This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-daemon.git
The following commit(s) were added to refs/heads/master by this push:
new 5a1edfa Add risv64 support. Patch provided by Bo YU.
5a1edfa is described below
commit 5a1edfa101e85b1bf5fd1ea8571a2f173cea3e9f
Author: Mark Thomas <[email protected]>
AuthorDate: Wed May 4 07:56:55 2022 +0100
Add risv64 support. Patch provided by Bo YU.
---
src/native/unix/support/apsupport.m4 | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/native/unix/support/apsupport.m4
b/src/native/unix/support/apsupport.m4
index 94f4961..c4f48fd 100644
--- a/src/native/unix/support/apsupport.m4
+++ b/src/native/unix/support/apsupport.m4
@@ -181,6 +181,11 @@ AC_DEFUN(AP_SUPPORTED_HOST,[
CFLAGS="$CFLAGS -DCPU=\\\"aarch64\\\""
HOST_CPU=aarch64
;;
+ riscv64)
+ CFLAGS="$CFLAGS -DCPU=\\\"riscv64\\\""
+ supported_os="riscv64"
+ HOST_CPU=riscv64
+ ;;
*)
AC_MSG_RESULT([failed])
AC_MSG_ERROR([Unsupported CPU architecture "$host_cpu"]);;