[PATCH/RFC V2 24/26] android: Enable JNI in build

Kevin Cernekee cernekee at gmail.com
Sun Aug 11 21:49:25 EDT 2013


Signed-off-by: Kevin Cernekee <cernekee at gmail.com>
---
 android/Makefile |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/android/Makefile b/android/Makefile
index 2465528..ba013ab 100644
--- a/android/Makefile
+++ b/android/Makefile
@@ -255,7 +255,8 @@ $(OPENCONNECT_BUILD)/Makefile: $(GNUTLS_DEPS) $(LIBXML_DEPS) $(OPENCONNECT_SRC)/
 	cd $(OPENCONNECT_BUILD) && ../../../configure $(CONFIGURE_ARGS) \
 	CFLAGS="--sysroot=$(NDK_SYSROOT) -DNO_BROKEN_DTLS_CHECK" \
 	GNUTLS_LIBS="$(shell PKG_CONFIG_LIBDIR=$(OC_SYSROOT)/lib/pkgconfig pkg-config --static --libs gnutls)" \
-	--enable-shared --with-vpnc-script=/etc/vpnc/vpnc-script
+	--enable-shared --with-vpnc-script=/etc/vpnc/vpnc-script \
+	--with-java=$(NDK_SYSROOT)/usr/include --enable-jni-standalone
 
 openconnect: $(OPENCONNECT_BUILD)/Makefile
 	make -C $(OPENCONNECT_BUILD)
-- 
1.7.9.5




More information about the openconnect-devel mailing list