]> code.ossystems Code Review - openembedded-core.git/commitdiff
toolchain-scripts: For non-glibc, pass compiler options to ensure the correct libc...
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 25 Jul 2015 13:48:21 +0000 (14:48 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 27 Jul 2015 22:28:22 +0000 (23:28 +0100)
gcc-cross-canadian-<arch> is only built once. It needs to target all the
different libcs, not just the currently selected one. This change ensures
that if another libc is used, the compiler correctly selects the right one.

[YOCTO #8025]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/toolchain-scripts.bbclass

index 93789182336ea2fff91b2b3394cb0c0e70bd2611..b838015ca5dd4c7b44f05bbf04f86ecf5d76d3b3 100644 (file)
@@ -3,6 +3,8 @@ inherit siteinfo kernel-arch
 # We want to be able to change the value of MULTIMACH_TARGET_SYS, because it
 # doesn't always match our expectations... but we default to the stock value
 REAL_MULTIMACH_TARGET_SYS ?= "${MULTIMACH_TARGET_SYS}"
+TARGET_CC_ARCH_append_libc-uclibc = " -muclibc"
+TARGET_CC_ARCH_append_libc-musl = " -mmusl"
 
 # This function creates an environment-setup-script for use in a deployable SDK
 toolchain_create_sdk_env_script () {