You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by va...@apache.org on 2020/04/01 01:15:42 UTC
[commons-crypto] branch master updated: [CRYPTO-139]
Makefile.common support for aarch64 native libraries. (#95)
This is an automated email from the ASF dual-hosted git repository.
vanzin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-crypto.git
The following commit(s) were added to refs/heads/master by this push:
new 80a90ca [CRYPTO-139] Makefile.common support for aarch64 native libraries. (#95)
80a90ca is described below
commit 80a90ca016e55cc3d3c6ea650f28390fd3c0e9a2
Author: Geoffrey Blake <ge...@gmail.com>
AuthorDate: Tue Mar 31 20:15:34 2020 -0500
[CRYPTO-139] Makefile.common support for aarch64 native libraries. (#95)
---
Makefile.common | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/Makefile.common b/Makefile.common
index 7a41d71..f0f99c5 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -53,7 +53,7 @@ endif
# os=Default is meant to be generic unix/linux
-known_os_archs := Linux-x86 Linux-x86_64 Linux-arm Linux-armhf Linux-ppc Linux-ppc64 Mac-x86 Mac-x86_64 FreeBSD-x86_64 Windows-x86 Windows-x86_64 SunOS-x86 SunOS-sparc SunOS-x86_64 AIX-ppc64
+known_os_archs := Linux-x86 Linux-x86_64 Linux-aarch64 Linux-arm Linux-armhf Linux-ppc Linux-ppc64 Mac-x86 Mac-x86_64 FreeBSD-x86_64 Windows-x86 Windows-x86_64 SunOS-x86 SunOS-sparc SunOS-x86_64 AIX-ppc64
os_arch := $(OS_NAME)-$(OS_ARCH)
ifeq (,$(findstring $(strip $(os_arch)),$(known_os_archs)))
@@ -169,6 +169,15 @@ Linux-armhf_LINKFLAGS := -shared -static-libgcc
Linux-armhf_LIBNAME := libcommons-crypto.so
Linux-armhf_COMMONS_CRYPTO_FLAGS:=
+Linux-aarch64_CC := $(CROSS_PREFIX)gcc
+Linux-aarch64_CXX := $(CROSS_PREFIX)g++
+Linux-aarch64_STRIP := $(CROSS_PREFIX)strip
+Linux-aarch64_CXXFLAGS := -Ilib/inc_linux -I$(JAVA_HOME)/include -Ilib/inc_mac -O2 -fPIC -fvisibility=hidden -Wall -Werror
+Linux-aarch64_CFLAGS := -Ilib/inc_linux -I$(JAVA_HOME)/include -Ilib/inc_mac -O2 -fPIC -fvisibility=hidden -Wall -Werror
+Linux-aarch64_LINKFLAGS := -shared -static-libgcc
+Linux-aarch64_LIBNAME := libcommons-crypto.so
+Linux-aarch64_COMMONS_CRYPTO_FLAGS :=
+
Mac-x86_CC := gcc -arch i386
Mac-x86_CXX := g++ -arch i386
Mac-x86_STRIP := strip -x