You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by yo...@apache.org on 2023/03/02 01:16:36 UTC

[bookkeeper] branch branch-4.15 updated: Support build in the aarch64 linux platform (#3828)

This is an automated email from the ASF dual-hosted git repository.

yong pushed a commit to branch branch-4.15
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git


The following commit(s) were added to refs/heads/branch-4.15 by this push:
     new 0f6baca1dc Support build in the aarch64 linux platform (#3828)
0f6baca1dc is described below

commit 0f6baca1dcb46f7d34751d6835f7a310e0834620
Author: Yong Zhang <zh...@gmail.com>
AuthorDate: Thu Mar 2 09:14:48 2023 +0800

    Support build in the aarch64 linux platform (#3828)
    
    ---
    ### Motivation
    
    When releasing the bookkeeper on aarch64 Mac OS, it will
    build aarch64 linux image use to release operations. Add
    aol properties for the aarch64 linux.
    
    (cherry picked from commit 227b166018242d26a5299b6ed338e12632ebe780)
---
 pom.xml                                            | 14 ++++++++-
 ...le_m1_aol.properties => aarch64_aol.properties} | 34 ++++++++++++++++++++++
 2 files changed, 47 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 608e6bb9e4..ffee769ee1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1253,6 +1253,18 @@
         </plugins>
       </build>
     </profile>
+    <profile>
+      <id>aarch64-linux-nar-aol</id>
+      <activation>
+        <os>
+          <family>linux</family>
+          <arch>aarch64</arch>
+        </os>
+      </activation>
+      <properties>
+        <nar.aolProperties>src/aarch64_aol.properties</nar.aolProperties>
+      </properties>
+    </profile>
     <profile>
       <id>mac-apple-silicon</id>
       <activation>
@@ -1262,7 +1274,7 @@
         </os>
       </activation>
       <properties>
-        <nar.aolProperties>src/apple_m1_aol.properties</nar.aolProperties>
+        <nar.aolProperties>src/aarch64_aol.properties</nar.aolProperties>
       </properties>
     </profile>
     <profile>
diff --git a/src/apple_m1_aol.properties b/src/aarch64_aol.properties
similarity index 58%
rename from src/apple_m1_aol.properties
rename to src/aarch64_aol.properties
index 797b9a7b28..77cc9afbef 100644
--- a/src/apple_m1_aol.properties
+++ b/src/aarch64_aol.properties
@@ -36,3 +36,37 @@ aarch64.MacOSX.gpp.shared.extension=dylib
 aarch64.MacOSX.gpp.plugin.extension=bundle
 aarch64.MacOSX.gpp.jni.extension=jnilib
 aarch64.MacOSX.gpp.executable.extension=
+
+
+#
+# aarch64 (arm64) Linux
+#
+aarch64.Linux.linker=g++
+
+aarch64.Linux.gpp.c.compiler=gcc
+aarch64.Linux.gpp.c.defines=Linux GNU_GCC
+aarch64.Linux.gpp.c.options=-Wall -Wno-long-long -Wpointer-arith -Wconversion -fPIC
+aarch64.Linux.gpp.c.includes=**/*.c
+aarch64.Linux.gpp.c.excludes=
+
+# options for gcc linker front end
+aarch64.Linux.gpp.linker.options=-shared -shared-libgcc -fPIC -fexceptions
+aarch64.Linux.gpp.linker.sysLibs=stdc++
+aarch64.Linux.gpp.linker.libs=
+
+aarch64.Linux.gpp.java.include=include;include/linux
+aarch64.Linux.gpp.java.runtimeDirectory=jre/lib/i386/client
+
+aarch64.Linux.gpp.lib.prefix=lib
+aarch64.Linux.gpp.shared.prefix=lib
+aarch64.Linux.gpp.static.extension=a
+aarch64.Linux.gpp.shared.extension=so
+aarch64.Linux.gpp.plugin.extension=so
+aarch64.Linux.gpp.jni.extension=so
+aarch64.Linux.gpp.executable.extension=
+
+# FIXME to be removed when NAR-6
+aarch64.Linux.gcc.static.extension=a
+aarch64.Linux.gcc.shared.extension=so*
+aarch64.Linux.gcc.plugin.extension=so
+aarch64.Linux.gcc.jni.extension=so