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

Jean-Baptiste Kempf jb at videolan.org
Fri Nov 28 12:11:40 CET 2014


On 12 Nov, Waterson wrote :
> Cross compile tool chains like mxe put a suffix to the host tripple,
> e.g. x86_64-w64-mingw32.static

This patch is wrong in itself.
Please merge it with the next.

> ---
>  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
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel

-- 
With my kindest regards,

-- 
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device



More information about the vlc-devel mailing list