On 28 May 2014 10:05, Hongxu Jia <hongxu....@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 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core