[Buildroot] [PATCH] luajit: bug fix - prevent target CFLAGS from being used in host tool compile.

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sun Aug 26 09:20:16 UTC 2012


Le Tue, 14 Aug 2012 21:25:30 -0400,
Danomi Manchego <danomimanchego123 at gmail.com> a écrit :

> The luajit amalgamation compile starts with building a host tool, and then
> uses it to build itself.  However, when CFLAGS is specified, as opposed to
> TARGET_CFLAGS, then it is used for both HOST and TARGET builds.  So if you
> add something target specific into 'Target Optimizations' (for example,
> '-mfpu=neon -mfloat-abi=softfp' for ARM Cortex-A8), then it gets into the
> host tool compile, which then fails (because my build machine is not an
> ARM Cortext-A8).  This can be fixed by using TARGET_CFLAGS and
> TARGET_LDFLAGS, instead of CFLAGS and LDFLAGS, respectively.
> 
> Signed-off-by: Danomi Manchego <danomimanchego123 at gmail.com>

Applied, thanks. It fixes build issues like
http://autobuild.buildroot.net/results/022b73a989734d800225c91f419f18f4fc31c264/build-end.log.

Danomi, could you share what is your Buildroot configuration that uses
-mfpu=neon -mfloat-abi=softfp ? I might be interested in adding such a
configuration to the autobuilders.

Thanks!

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com



More information about the buildroot mailing list