diff options
author | Khem Raj <raj.khem@gmail.com> | 2015-07-23 22:54:52 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2015-07-23 22:54:52 -0700 |
commit | 2a912ed99d2a7f850af217fd722199d4fd181277 (patch) | |
tree | 562454e1f66ed87d23bded644556e7cea8dd1a37 | |
parent | abd6d72c0ae56ce1879d411f08beab161fae089d (diff) | |
download | meta-clang-2a912ed99d2a7f850af217fd722199d4fd181277.tar.gz |
clang: Define dynamic linker for nativesdk recipes
When building using crossdk clang the dynamic linker still points to
native build system which wont work when SDKMACHINE is differnet than
build host so lets pass the values via TOOLCHAIN_OPTIONS to point to
correct linker
Currently done for x86 only, but this is ok since we dont have other
SDKMACHINEs yet, may be in future but we will cross that bridge when we
reach there
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | conf/clang.conf | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/conf/clang.conf b/conf/clang.conf index ed3194e..21af75d 100644 --- a/conf/clang.conf +++ b/conf/clang.conf | |||
@@ -7,6 +7,9 @@ CCLD_toolchain-clang = "${TARGET_PREFIX}clang ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS | |||
7 | THUMB_TUNE_CCARGS_remove_toolchain-clang = "-mthumb-interwork" | 7 | THUMB_TUNE_CCARGS_remove_toolchain-clang = "-mthumb-interwork" |
8 | TUNE_CCARGS_append_toolchain-clang = " -D__extern_always_inline=inline" | 8 | TUNE_CCARGS_append_toolchain-clang = " -D__extern_always_inline=inline" |
9 | 9 | ||
10 | TOOLCHAIN_OPTIONS_append_toolchain-clang_class-nativesdk_x86-64 = " -Wl,-dynamic-linker,${base_libdir}/ld-linux-x86-64.so.2" | ||
11 | TOOLCHAIN_OPTIONS_append_toolchain-clang_class-nativesdk_x86 = " -Wl,-dynamic-linker,${base_libdir}/ld-linux.so.2" | ||
12 | |||
10 | TOOLCHAIN_pn-lzo = "clang" | 13 | TOOLCHAIN_pn-lzo = "clang" |
11 | DEPENDS_append_pn-lzo = " clang-cross-${TARGET_ARCH} " | 14 | DEPENDS_append_pn-lzo = " clang-cross-${TARGET_ARCH} " |
12 | 15 | ||