Commit 937f97f2 authored by Rafaël Carré's avatar Rafaël Carré

contrib: gnutls: fix android build

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
parent 6e034ff2
--- 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)
...@@ -17,6 +17,9 @@ gnutls: gnutls-$(GNUTLS_VERSION).tar.bz2 .sum-gnutls ...@@ -17,6 +17,9 @@ gnutls: gnutls-$(GNUTLS_VERSION).tar.bz2 .sum-gnutls
$(UNPACK) $(UNPACK)
ifdef HAVE_WIN32 ifdef HAVE_WIN32
$(APPLY) $(SRC)/gnutls/gnutls-win32.patch $(APPLY) $(SRC)/gnutls/gnutls-win32.patch
endif
ifdef HAVE_ANDROID
$(APPLY) $(SRC)/gnutls/no-gl.patch
endif endif
$(APPLY) $(SRC)/gnutls/gnutls-no-egd.patch $(APPLY) $(SRC)/gnutls/gnutls-no-egd.patch
$(UPDATE_AUTOCONFIG) $(UPDATE_AUTOCONFIG)
...@@ -51,6 +54,9 @@ DEPS_gnutls = nettle $(DEPS_nettle) ...@@ -51,6 +54,9 @@ DEPS_gnutls = nettle $(DEPS_nettle)
endif endif
.gnutls: gnutls .gnutls: gnutls
ifdef HAVE_ANDROID
$(RECONF)
endif
cd $< && $(HOSTVARS) ./configure $(GNUTLS_CONF) cd $< && $(HOSTVARS) ./configure $(GNUTLS_CONF)
cd $</lib && $(MAKE) install cd $</lib && $(MAKE) install
touch $@ touch $@
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment