[vlc-devel] [PATCH] lua: build luac for the build, not the host

Rafaël Carré funman at videolan.org
Fri Feb 10 12:36:16 CET 2012

Le 2012-02-10 06:04, Rémi Denis-Courmont a écrit :
> On Fri, 10 Feb 2012 11:38:50 +0100, John Freed <okvlc at johnfreed.com>
> wrote:
>> The real solution, I think, is upstream with Lua. They need something
> like
>> an -m32 option for producing 32-bit compatible output from their 64-bit
>> compiler.
> It is not that easy. Our patch forces -m32 at build time. Run-time ABI
> selection would require a lot more code and be a lot slower.
> IMHO, the ABI dependency on the architecture is really a design bug in
> Lua. There are no good reasons not to use the same ABI across all little
> endian and multiple of 8-bits platforms.
> Anyway, we should actually require VLC be built with 32-bits ABI Lua, even
> on (Linux) 64-bits platforms.

> Otherwise the tokenized VLC Lua scripts will
> not work. We basically have forked Lua.

Forking lua is an option yes but I don't think it's needed.

If we want to go that way we should rather import lua in vlc.git and
improve from that.

More information about the vlc-devel mailing list