[8u] RFR: Change os.arch property to arm
Anton Kozlov
akozlov at azul.com
Wed Dec 21 13:22:03 UTC 2016
Hi!
Some software could use os.arch property and expect there 'arm' value on arm
system. An example is jdbc-sqltie (https://github.com/xerial/sqlite-jdbc), which
uses the property to get path to own native libraries. For now it fails to
initialize, since it's doesn't know that aarch32 is the same as arm in this
context.
Using 'arm' value for 'os.arch' system property fixes issue with jdbc-sqlite.
Thanks,
Anton
diff --git a/common/autoconf/platform.m4 b/common/autoconf/platform.m4
--- a/common/autoconf/platform.m4
+++ b/common/autoconf/platform.m4
@@ -320,6 +320,9 @@
elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then
# On all platforms except macosx, we replace x86_64 with amd64.
OPENJDK_TARGET_CPU_OSARCH="amd64"
+ elif test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xaarch32; then
+ # On linux only, we replace aarch32 with arm.
+ OPENJDK_TARGET_CPU_OSARCH="arm"
fi
AC_SUBST(OPENJDK_TARGET_CPU_OSARCH)
More information about the aarch32-port-dev
mailing list