summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2015-07-23 22:54:52 -0700
committerKhem Raj <raj.khem@gmail.com>2015-07-23 22:54:52 -0700
commit2a912ed99d2a7f850af217fd722199d4fd181277 (patch)
tree562454e1f66ed87d23bded644556e7cea8dd1a37
parentabd6d72c0ae56ce1879d411f08beab161fae089d (diff)
downloadmeta-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.conf3
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
7THUMB_TUNE_CCARGS_remove_toolchain-clang = "-mthumb-interwork" 7THUMB_TUNE_CCARGS_remove_toolchain-clang = "-mthumb-interwork"
8TUNE_CCARGS_append_toolchain-clang = " -D__extern_always_inline=inline" 8TUNE_CCARGS_append_toolchain-clang = " -D__extern_always_inline=inline"
9 9
10TOOLCHAIN_OPTIONS_append_toolchain-clang_class-nativesdk_x86-64 = " -Wl,-dynamic-linker,${base_libdir}/ld-linux-x86-64.so.2"
11TOOLCHAIN_OPTIONS_append_toolchain-clang_class-nativesdk_x86 = " -Wl,-dynamic-linker,${base_libdir}/ld-linux.so.2"
12
10TOOLCHAIN_pn-lzo = "clang" 13TOOLCHAIN_pn-lzo = "clang"
11DEPENDS_append_pn-lzo = " clang-cross-${TARGET_ARCH} " 14DEPENDS_append_pn-lzo = " clang-cross-${TARGET_ARCH} "
12 15