[OE-core] [PATCH 2/3] apr: fix cross compiling failed

Burton, Ross ross.burton at intel.com
Wed May 28 10:48:31 UTC 2014


On 28 May 2014 10:05, Hongxu Jia <hongxu.jia at windriver.com> wrote:
> The tools/gen_test_char was invoked at build time, and it didn't
> work for the cross compiling, so we used the native one to instead.

Building all of libapr natively and installing the extra binary is
wasteful when the binary is trivially compiled natively in the target
build.

Simply add a do_compile_prepend() that uses BUILD_CC and so on to
compile tools/gen_test_char.  As it only uses standard C headers this
is trivial and you won't need to patch the build at all (obviously
test when MACHINE is massively incompatible with the host, ie qemuarm
with x86 host).

Ross



More information about the Openembedded-core mailing list