fix java include path detection on some Linux systems
parent
cafdf73fb6
commit
6b57efcd1d
6
java.sh
6
java.sh
|
@ -12,7 +12,11 @@ if [ "$OS" == "Darwin" ] ; then
|
||||||
jniLibName="libwolfssl.jnilib"
|
jniLibName="libwolfssl.jnilib"
|
||||||
cflags="-DHAVE_ECC"
|
cflags="-DHAVE_ECC"
|
||||||
elif [ "$OS" == "Linux" ] ; then
|
elif [ "$OS" == "Linux" ] ; then
|
||||||
javaHome=`echo $(dirname $(dirname $(dirname $(readlink -f $(which java)))))`
|
javaHome=`echo $(dirname $(dirname $(readlink -f $(which java))))`
|
||||||
|
if [ ! -d "$javaHome/include" ]
|
||||||
|
then
|
||||||
|
javaHome=`echo $(dirname $javaHome)`
|
||||||
|
fi
|
||||||
javaIncludes="-I$javaHome/include -I$javaHome/include/linux"
|
javaIncludes="-I$javaHome/include -I$javaHome/include/linux"
|
||||||
javaLibs="-shared"
|
javaLibs="-shared"
|
||||||
jniLibName="libwolfSSL.so"
|
jniLibName="libwolfSSL.so"
|
||||||
|
|
Loading…
Reference in New Issue