Allow ics-openconnect to build under JDK8

This commit is contained in:
Andrew Patrikalakis 2017-05-21 23:43:37 +00:00 committed by Boris Kraut
parent 663586fed8
commit a9d0024116
3 changed files with 28 additions and 0 deletions

View file

@ -113,6 +113,7 @@ Build:1.02,1029
Build:1.11,1119 Build:1.11,1119
commit=v1.11 commit=v1.11
submodules=yes submodules=yes
patch=stoken-java-7.diff,no-textrel-gmp.diff
srclibs=ACRA@acra-4.5.0 srclibs=ACRA@acra-4.5.0
rm=libs/* rm=libs/*
prebuild=pushd $$ACRA$$ && \ prebuild=pushd $$ACRA$$ && \
@ -120,7 +121,9 @@ Build:1.11,1119
popd && \ popd && \
cp $$ACRA$$/target/acra-4.5.0.jar libs/ && \ cp $$ACRA$$/target/acra-4.5.0.jar libs/ && \
make -C external/openconnect/android sources make -C external/openconnect/android sources
scandelete=external/openconnect/android/sources/gnutls-3.2.21/doc/credentials
build=make -C external NDK=$$NDK$$ build=make -C external NDK=$$NDK$$
ndk=r10e
Maintainer Notes: Maintainer Notes:
TODO: libs/openconnect-wrapper.jar TODO: libs/openconnect-wrapper.jar

View file

@ -0,0 +1,12 @@
diff --git a/external/openconnect/android/Makefile b/external/openconnect/android/Makefile
--- a/external/openconnect/android/Makefile
+++ b/external/openconnect/android/Makefile
@@ -51,7 +51,7 @@ FETCH=$(TOPDIR)/fetch.sh
CONFIGURE_ARGS := --host=$(TRIPLET) --prefix=$(OC_SYSROOT) \
--disable-shared --enable-static \
- CFLAGS="$(EXTRA_CFLAGS)"
+ --disable-assembly CFLAGS="$(EXTRA_CFLAGS)"
SOURCE_LIST = $(LIBXML2_SRC)/configure $(GMP_SRC)/configure \
$(NETTLE_SRC)/configure $(GNUTLS_SRC)/configure \

View file

@ -0,0 +1,13 @@
diff --git a/external/stoken/java/build.xml b/external/stoken/java/build.xml
index ded2a76..5f821bb 100644
--- a/external/stoken/java/build.xml
+++ b/external/stoken/java/build.xml
@@ -5,6 +5,8 @@
<property name="jar_lib" location="${dist}/stoken-wrapper.jar"/>
<property name="jar_app" location="${dist}/example.jar"/>
+ <property name="ant.build.javac.source" value="1.7"/>
+ <property name="ant.build.javac.target" value="1.7"/>
<target name="init">
<mkdir dir="${build}"/>