[vlc-devel] [PATCH] contrib/gnutls: add libidn CFLAGS as appropriate

Sean McGovern gseanmcg at gmail.com
Wed Jun 29 21:31:03 CEST 2016


The configury for gnutls already probes for this, but does not use
the values it finds.
---
 contrib/src/gnutls/gnutls-libidn.patch |   36 ++++++++++++++++++++++++++++++++
 contrib/src/gnutls/rules.mak           |    1 +
 2 files changed, 37 insertions(+)
 create mode 100644 contrib/src/gnutls/gnutls-libidn.patch

diff --git a/contrib/src/gnutls/gnutls-libidn.patch b/contrib/src/gnutls/gnutls-libidn.patch
new file mode 100644
index 0000000..5f00fa6
--- /dev/null
+++ b/contrib/src/gnutls/gnutls-libidn.patch
@@ -0,0 +1,36 @@
+--- gnutls/lib/x509/Makefile.am.ORIG	Tue Jul 21 05:42:08 2015
++++ gnutls/lib/x509/Makefile.am	Wed Jun 29 15:05:35 2016
+@@ -23,7 +23,8 @@
+ 	-I$(srcdir)/../includes		\
+ 	-I$(builddir)/../includes	\
+ 	-I$(srcdir)/..			\
+-	$(LIBOPENCDK_CFLAGS)
++	$(LIBOPENCDK_CFLAGS)		\
++	$(LIBIDN_CFLAGS)
+ 
+ if ENABLE_MINITASN1
+ AM_CPPFLAGS += -I$(srcdir)/../minitasn1
+--- gnutls/lib/ext/Makefile.am.ORIG	Wed Feb  4 23:35:05 2015
++++ gnutls/lib/ext/Makefile.am	Wed Jun 29 15:19:34 2016
+@@ -26,7 +26,8 @@
+ 	-I$(builddir)/../includes	\
+ 	-I$(builddir)/../../gl          \
+ 	-I$(srcdir)/..			\
+-	-I$(srcdir)/../opencdk
++	-I$(srcdir)/../opencdk		\
++	$(LIBIDN_CFLAGS)
+ 
+ if ENABLE_MINITASN1
+ AM_CPPFLAGS += -I$(srcdir)/../minitasn1
+--- gnutls/src/Makefile.am.ORIG	Fri Jan  8 04:10:34 2016
++++ gnutls/src/Makefile.am	Wed Jun 29 15:20:12 2016
+@@ -41,7 +41,8 @@
+ 	-I$(srcdir)/../lib/includes		\
+ 	-I$(srcdir)/../libdane/includes		\
+ 	-I$(srcdir)/../extra/includes	\
+-	$(LIBOPTS_CFLAGS)
++	$(LIBOPTS_CFLAGS)		\
++	$(LIBIDN_CFLAGS)
+ 
+ if NEED_LIBOPTS
+ LIBOPTS = libopts/libopts.la
diff --git a/contrib/src/gnutls/rules.mak b/contrib/src/gnutls/rules.mak
index 557251a..52a1a56 100644
--- a/contrib/src/gnutls/rules.mak
+++ b/contrib/src/gnutls/rules.mak
@@ -35,6 +35,7 @@ endif
 ifdef HAVE_MACOSX
 	$(APPLY) $(SRC)/gnutls/gnutls-pkgconfig-osx.patch
 endif
+	$(APPLY) $(SRC)/gnutls/gnutls-libidn.patch
 	$(call pkg_static,"lib/gnutls.pc.in")
 	$(UPDATE_AUTOCONFIG)
 	$(MOVE)
-- 
1.7.9.2



More information about the vlc-devel mailing list