[vlc-devel] [PATCH] contrib: lua: remove the cross compiler environment when compiling native luac
Rémi Denis-Courmont
remi at remlab.net
Wed Jan 29 17:22:49 CET 2020
Le keskiviikkona 29. tammikuuta 2020, 13.22.16 EET Steve Lhomme a écrit :
> ---
> contrib/src/lua/rules.mak | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/contrib/src/lua/rules.mak b/contrib/src/lua/rules.mak
> index 309b9940fe5..ca6c207ba32 100644
> --- a/contrib/src/lua/rules.mak
> +++ b/contrib/src/lua/rules.mak
> @@ -94,6 +94,11 @@ LUACVARS=CPPFLAGS="-DLUA_DL_DLL"
> endif
> endif
>
> +ifdef HAVE_CROSS_COMPILE
> +# Cancel the special environment for the host
> +LUACVARS+=CFLAGS="" CPPFLAGS="" LDFLAGS=""
> +endif
> +
This makes no sense. If HAVE_CROSS_COMPILE is set, the compilation is NOT
native, by definition, and the flags are necessary.
-1
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list