[vlc-devel] [PATCH 1/2] host_os might has suffixes like .static or .shared

Waterson waterson at hotmail.com
Wed Nov 12 09:51:10 CET 2014


Cross compile tool chains like mxe put a suffix to the host tripple,
e.g. x86_64-w64-mingw32.static
---
 contrib/src/gpg-error/mkheader-host_os.patch |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 contrib/src/gpg-error/mkheader-host_os.patch

diff --git a/contrib/src/gpg-error/mkheader-host_os.patch b/contrib/src/gpg-error/mkheader-host_os.patch
new file mode 100644
index 0000000..b49a954
--- /dev/null
+++ b/contrib/src/gpg-error/mkheader-host_os.patch
@@ -0,0 +1,16 @@
+--- a/src/mkheader.c	2014-11-05 16:31:15.712043961 +0800
++++ b/src/mkheader.c	2014-11-05 16:30:23.879191851 +0800
+@@ -450,11 +450,11 @@
+     }
+   else if (!strcmp (tag, "include:os-add"))
+     {
+-      if (!strcmp (host_os, "mingw32"))
++      if (!strncmp (host_os, "mingw32", strlen("mingw32")))
+         {
+           include_file (fname, lnr, "w32-add.h", write_line);
+         }
+-      else if (!strcmp (host_os, "mingw32ce"))
++      else if (!strncmp (host_os, "mingw32ce", strlen("mingw32")))
+         {
+           include_file (fname, lnr, "w32-add.h", write_line);
+           include_file (fname, lnr, "w32ce-add.h", write_line);
-- 
1.7.9.5




More information about the vlc-devel mailing list