[vlc-devel] [PATCH] contrib: zlib: Set the CHOST variable
Rémi Denis-Courmont
remi at remlab.net
Tue Apr 2 13:08:04 CEST 2013
On Tue, 2 Apr 2013 12:44:41 +0300, Martin Storsjö <martin at martin.st>
wrote:
> This fixes cross compilation from OS X.
> ---
> contrib/src/zlib/rules.mak | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/contrib/src/zlib/rules.mak b/contrib/src/zlib/rules.mak
> index 4e07918..8bbeb7e 100644
> --- a/contrib/src/zlib/rules.mak
> +++ b/contrib/src/zlib/rules.mak
> @@ -7,6 +7,10 @@ ifeq ($(call need_pkg,"zlib"),)
> PKGS_FOUND += zlib
> endif
>
> +ifdef HAVE_CROSS_COMPILE
> +CONFIG_VARS=CHOST=$(HOST)
> +endif
You can't just clutter the variable namespace like that. Remember every
rule file is included in the same single makefile.
--
Rémi Denis-Courmont
Sent from my collocated server
More information about the vlc-devel
mailing list