Submitted by: cazfi
Submitted on: Fri 20 Dec 2013 02:13:06 AM EET
Priority: 5 - Normal
Status: Ready For Test
Assigned to: None
Discussion Lock: Any
Planned Release: 2.6.0
Add configure option --enable-sys-tolua-cmd.
That can be used to define tolua command to use when creating lua bindings.
Default is to use one build as part of freeciv, except when cross-compiling.
Simple --enable-sys-tolua-cmd searches the command from PATH. Any value given
to option is treated as full path to the executable.
This is mainly useful when cross-compiling. We've had long-standing
bug/limitation in cross-compiling that tolua build for the target is used on
build system if bindings need to be generated. The workaround for this has
been to first make native build that uses built native tolua to create lua
bindings and only then to make cross-compilation without regenerating
bindings. With this patch, assuming user has tolua for build system available,
build can happen cleanly at once. If tolua is not available, old workaround
can still be used in a bit modified form - to actual cross-compilation build
(in its own build directory) must be given --enable-sys-tolua-cmd=<path to
native build directory>/dependencies/tolua-5.2/src/bin/tolua
Another case where two passes has been necessary is building the distribution
tarballs. Compilation pass has been necessary to build tolua that the lua
binding generation needs. I have not yet tested, but in theory this patch
should help to get rid of the compilation pass.
Date: Fri 20 Dec 2013 02:13:06 AM EET Name: SysToluaCmd.patch Size: 2kB
Reply to this item at:
Message sent via/by Gna!
Freeciv-dev mailing list