]> git.sesse.net Git - vlc/commitdiff
contrib: gpg-error: use CPPFLAGS when processing errno.h
authorRafaël Carré <funman@videolan.org>
Wed, 20 Jun 2012 09:42:33 +0000 (11:42 +0200)
committerRafaël Carré <funman@videolan.org>
Wed, 20 Jun 2012 09:42:33 +0000 (11:42 +0200)
contrib/src/gpg-error/cppflags.patch [new file with mode: 0644]
contrib/src/gpg-error/rules.mak

diff --git a/contrib/src/gpg-error/cppflags.patch b/contrib/src/gpg-error/cppflags.patch
new file mode 100644 (file)
index 0000000..c168e5a
--- /dev/null
@@ -0,0 +1,11 @@
+--- libgpg-error/src/Makefile.am.orig  2012-06-20 11:39:51.650987881 +0200
++++ libgpg-error/src/Makefile.am       2012-06-20 11:40:09.266987882 +0200
+@@ -138,7 +138,7 @@
+ # It is correct to use $(CPP).  We want the host's idea of the error codes.
+ mkerrcodes.h: Makefile mkerrcodes.awk $(gpg_extra_headers)
+       $(AWK) -f $(srcdir)/mkerrcodes1.awk $(srcdir)/errnos.in >_$@
+-      $(CPP) $(extra_cppflags) _$@ | grep GPG_ERR_ | \
++      $(CPP) $(CPPFLAGS) $(extra_cppflags) _$@ | grep GPG_ERR_ | \
+                $(AWK) -f $(srcdir)/mkerrcodes.awk >$@
+       -rm _$@
index 92cfe099f102934500a12f93617dea7abf600a9d..9e948a5362f1468ba77e0c290b14805c0137e164 100644 (file)
@@ -12,9 +12,11 @@ libgpg-error: libgpg-error-$(GPGERROR_VERSION).tar.bz2 .sum-gpg-error
 ifdef HAVE_WIN32
        $(APPLY) $(SRC)/gpg-error/windres-make.patch
 endif
+       $(APPLY) $(SRC)/gpg-error/cppflags.patch
        $(MOVE)
 
 .gpg-error: libgpg-error
+       $(RECONF)
        cd $< && $(HOSTVARS) ./configure $(HOSTCONF) --disable-nls --disable-shared --disable-languages
        cd $< && $(MAKE) install
        touch $@