[vlc-devel] [PATCH] contrib: fix building zlib under mingw

Jean-Baptiste Kempf jb at videolan.org
Mon Feb 29 20:45:02 CET 2016


On 29 Feb, Derek Buitenhuis wrote :
> On 2/26/2016 7:01 PM, Jean-Baptiste Kempf wrote:
> > Because the CFLAGS are ignored there.
> 
> Uh, yes they do:

Not they don't.

>     $ export CFLAGS=-brokencrap
>     $ make -fwin32/Makefile.gcc PREFIX=x86_64-w64-mingw32- CFLAGS="$CFLAGS"
>     x86_64-w64-mingw32-gcc -brokencrap -c -o gzlib.o gzlib.c
>     x86_64-w64-mingw32-gcc: error: unrecognized option '-brokencrap'
>     make: *** [gzlib.o] Error 1
> 
> I'm not sure what you're talking about.

Try:
CFLAGS=-brokencrap make -fwin32/Makefile.gcc PREFIX=i686-w64-mingw32-

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


More information about the vlc-devel mailing list