[vlc-devel] [PATCH] contrib: zlib: Set the CHOST variable

Rafaël Carré funman at videolan.org
Tue Apr 2 11:31:58 CEST 2013


Hello,

I think it would fail when targeting OSX, because the compilers aren't
always HOST prefixed.

Maybe set it only if HAVE_CROSS_COMPILE ?

Le 01/04/2013 23:02, Martin Storsjö a écrit :
> This fixes cross compilation from OS X.
> 
> ---
> Please test on other systems/setups.
> ---
>  contrib/src/zlib/rules.mak |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/contrib/src/zlib/rules.mak b/contrib/src/zlib/rules.mak
> index 4e07918..e0b90f8 100644
> --- a/contrib/src/zlib/rules.mak
> +++ b/contrib/src/zlib/rules.mak
> @@ -18,6 +18,6 @@ zlib: zlib-$(ZLIB_VERSION).tar.gz .sum-zlib
>  	$(MOVE)
>  
>  .zlib: zlib
> -	cd $< && $(HOSTVARS) ./configure --prefix=$(PREFIX) --static
> +	cd $< && $(HOSTVARS) CHOST=$(HOST) ./configure --prefix=$(PREFIX) --static
>  	cd $< && $(MAKE) install
>  	touch $@
> 




More information about the vlc-devel mailing list