From 78488527dd9e7885d736725d35b2739584996260 Mon Sep 17 00:00:00 2001 From: Chris Conlon Date: Tue, 13 May 2025 16:12:42 -0600 Subject: [PATCH] JNI/JSSE: add -fPIC to CFLAGS in java.sh for Aarch64 --- java.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java.sh b/java.sh index 9654488..cbb05db 100755 --- a/java.sh +++ b/java.sh @@ -87,7 +87,7 @@ elif [ "$OS" == "Linux" ] ; then javaIncludes="-I$javaHome/include -I$javaHome/include/linux -I$WOLFSSL_INSTALL_DIR/include" javaLibs="-shared" jniLibName="libwolfssljni.so" - if [ "$ARCH" == "x86_64" ] ; then + if [ "$ARCH" == "x86_64" ] || [ "$ARCH" == "aarch64" ]; then fpic="-fPIC" else fpic=""