[vlc-devel] [PATCH 3/5] contrib: gnutls: fix android build

Rafaël Carré funman at videolan.org
Tue Dec 27 03:30:24 CET 2011


gl/ builds replacements for standard headers in case the system ones don't work
but it has the reverse effect: provided headers work and built ones don't

also re-run autoreconf so configure knows about the NDK toolchain (arm-linux-androideabi-)
---
 contrib/src/gnutls/no-gl.patch |   20 ++++++++++++++++++++
 contrib/src/gnutls/rules.mak   |    4 ++++
 2 files changed, 24 insertions(+), 0 deletions(-)
 create mode 100644 contrib/src/gnutls/no-gl.patch

diff --git a/contrib/src/gnutls/no-gl.patch b/contrib/src/gnutls/no-gl.patch
new file mode 100644
index 0000000..ac2b92a
--- /dev/null
+++ b/contrib/src/gnutls/no-gl.patch
@@ -0,0 +1,20 @@
+--- gnutls/lib/Makefile.am.orig	2011-12-25 23:15:45.170377002 -0500
++++ gnutls/lib/Makefile.am	2011-12-25 23:15:54.094377001 -0500
+@@ -23,7 +23,7 @@
+ 
+ ACLOCAL_AMFLAGS = -I m4 -I gl/m4
+ 
+-SUBDIRS = gl po includes x509
++SUBDIRS = po includes x509
+ if ENABLE_MINITASN1
+ SUBDIRS += minitasn1
+ endif
+@@ -120,7 +120,7 @@
+ libgnutls_la_LDFLAGS = -no-undefined \
+ 	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
+ 
+-libgnutls_la_LIBADD = gl/liblgnu.la x509/libgnutls_x509.la \
++libgnutls_la_LIBADD = x509/libgnutls_x509.la \
+ 	$(LTLIBZ)  $(LTLIBINTL) $(LIBSOCKET) $(LTLIBDL) \
+ 	$(LTLIBPTHREAD)
+ 
diff --git a/contrib/src/gnutls/rules.mak b/contrib/src/gnutls/rules.mak
index d2db2a0..d2480a0 100644
--- a/contrib/src/gnutls/rules.mak
+++ b/contrib/src/gnutls/rules.mak
@@ -18,6 +18,9 @@ gnutls: gnutls-$(GNUTLS_VERSION).tar.bz2 .sum-gnutls
 ifdef HAVE_WIN32
 	$(APPLY) $(SRC)/gnutls/gnutls-win32.patch
 endif
+ifdef HAVE_ANDROID
+	$(APPLY) $(SRC)/gnutls/no-gl.patch
+endif
 	$(APPLY) $(SRC)/gnutls/gnutls-no-egd.patch
 	$(MOVE)
 
@@ -50,6 +53,7 @@ DEPS_gnutls = nettle $(DEPS_nettle)
 endif
 
 .gnutls: gnutls
+	$(RECONF)
 	cd $< && $(HOSTVARS) ./configure $(GNUTLS_CONF)
 	cd $</lib && $(MAKE) install
 	touch $@
-- 
1.7.7.3



More information about the vlc-devel mailing list