JNI/JSSE: add -fPIC to CFLAGS in java.sh for Aarch64

pull/267/head
Chris Conlon 2025-05-13 16:12:42 -06:00
parent 26b542cf8c
commit 78488527dd
1 changed files with 1 additions and 1 deletions

View File

@ -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=""