[vlc-devel] [vlc-commits] contrib: Use the official zlib Win32 build system

Steve Lhomme robux4 at gmail.com
Tue Jul 26 11:19:55 CEST 2016


On Fri, May 20, 2016 at 12:01 PM, Derek Buitenhuis <git at videolan.org> wrote:
> vlc | branch: master | Derek Buitenhuis <derek.buitenhuis at gmail.com> | Thu May 19 17:34:47 2016 +0100| [10afba39bb986c8d55fa940fe07476c92a3276a3] | committer: Jean-Baptiste Kempf
>
> contrib: Use the official zlib Win32 build system
>
> We don't actually need to patch or use the configure script. By properly
> passing the Makefile variables, instead of environement variables,
> we can use the official Win32 build system for zlib.
>
> Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
> Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
>
>> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=10afba39bb986c8d55fa940fe07476c92a3276a3
> ---
>
>  contrib/src/zlib/mingw.patch |   11 -----------
>  contrib/src/zlib/rules.mak   |    8 +++++---
>  2 files changed, 5 insertions(+), 14 deletions(-)
>
> diff --git a/contrib/src/zlib/mingw.patch b/contrib/src/zlib/mingw.patch
> deleted file mode 100644
> index 3439d99..0000000
> --- a/contrib/src/zlib/mingw.patch
> +++ /dev/null
> @@ -1,11 +0,0 @@
> ---- zlib/configure     2016-02-25 16:35:50.228444200 +0100
> -+++ zlib/configure.mingw       2016-02-25 16:34:19.725510100 +0100
> -@@ -194,7 +194,7 @@ if test "$gcc" -eq 1 && ($cc -c $test.c)
> - # temporary bypass
> -         rm -f $test.[co] $test $test$shared_ext
> -         echo "Please use win32/Makefile.gcc instead." | tee -a configure.log
> --        leave 1
> -+#        leave 1
> -         LDSHARED=${LDSHARED-"$cc -shared"}
> -         LDSHAREDLIBC=""
> -         EXE='.exe' ;;
> diff --git a/contrib/src/zlib/rules.mak b/contrib/src/zlib/rules.mak
> index 5728d58..8c903f3 100644
> --- a/contrib/src/zlib/rules.mak
> +++ b/contrib/src/zlib/rules.mak
> @@ -24,12 +24,14 @@ $(TARBALLS)/zlib-$(ZLIB_VERSION).tar.gz:
>
>  zlib: zlib-$(ZLIB_VERSION).tar.gz .sum-zlib
>         $(UNPACK)
> -ifdef HAVE_WIN32
> -       $(APPLY) $(SRC)/zlib/mingw.patch
> -endif
>         $(MOVE)
>
>  .zlib: zlib
> +ifdef HAVE_WIN32
> +       cd $< && $(HOSTVARS) $(MAKE) -fwin32/Makefile.gcc $(HOSTVARS) $(ZLIB_CONFIG_VARS) CFLAGS="$(CFLAGS) $(ZLIB_ECFLAGS)" RC="$(HOST)-windres" LD="$(CC)"

$(HOST)-windres doesn't exist on mingw32.Only windres. So contribs
Windows don't build on Windows now.

> +       cd $< && $(MAKE) -fwin32/Makefile.gcc install INCLUDE_PATH="$(PREFIX)/include" LIBRARY_PATH="$(PREFIX)/lib" BINARY_PATH="$(PREFIX)/bin"
> +else
>         cd $< && $(HOSTVARS) $(ZLIB_CONFIG_VARS) CFLAGS="$(CFLAGS) $(ZLIB_ECFLAGS)" ./configure --prefix=$(PREFIX) --static
>         cd $< && $(MAKE) install
> +endif
>         touch $@
>
> _______________________________________________
> vlc-commits mailing list
> vlc-commits at videolan.org
> https://mailman.videolan.org/listinfo/vlc-commits


More information about the vlc-devel mailing list