summaryrefslogtreecommitdiffstats
path: root/meta/classes/toolchain-scripts.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-25 14:48:21 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-27 23:29:16 +0100
commit72777f4f2f66f4bb644b7513cc12bc1d284b51d1 (patch)
tree9e3f57bf2a34d414b12ef9f72c732c7edc7d22ac /meta/classes/toolchain-scripts.bbclass
parentae344c188d210faa549bf57d45ed2f6a37eb9319 (diff)
downloadpoky-72777f4f2f66f4bb644b7513cc12bc1d284b51d1.tar.gz
toolchain-scripts: For non-glibc, pass compiler options to ensure the correct libc selection
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] (From OE-Core rev: da2e92e256054b137a1646fdad1fe1a47ba3215a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/toolchain-scripts.bbclass')
-rw-r--r--meta/classes/toolchain-scripts.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/toolchain-scripts.bbclass b/meta/classes/toolchain-scripts.bbclass
index 9378918233..b838015ca5 100644
--- a/meta/classes/toolchain-scripts.bbclass
+++ b/meta/classes/toolchain-scripts.bbclass
@@ -3,6 +3,8 @@ inherit siteinfo kernel-arch
3# We want to be able to change the value of MULTIMACH_TARGET_SYS, because it 3# We want to be able to change the value of MULTIMACH_TARGET_SYS, because it
4# doesn't always match our expectations... but we default to the stock value 4# doesn't always match our expectations... but we default to the stock value
5REAL_MULTIMACH_TARGET_SYS ?= "${MULTIMACH_TARGET_SYS}" 5REAL_MULTIMACH_TARGET_SYS ?= "${MULTIMACH_TARGET_SYS}"
6TARGET_CC_ARCH_append_libc-uclibc = " -muclibc"
7TARGET_CC_ARCH_append_libc-musl = " -mmusl"
6 8
7# This function creates an environment-setup-script for use in a deployable SDK 9# This function creates an environment-setup-script for use in a deployable SDK
8toolchain_create_sdk_env_script () { 10toolchain_create_sdk_env_script () {