From 2a912ed99d2a7f850af217fd722199d4fd181277 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Thu, 23 Jul 2015 22:54:52 -0700 Subject: 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 --- conf/clang.conf | 3 +++ 1 file changed, 3 insertions(+) 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 THUMB_TUNE_CCARGS_remove_toolchain-clang = "-mthumb-interwork" TUNE_CCARGS_append_toolchain-clang = " -D__extern_always_inline=inline" +TOOLCHAIN_OPTIONS_append_toolchain-clang_class-nativesdk_x86-64 = " -Wl,-dynamic-linker,${base_libdir}/ld-linux-x86-64.so.2" +TOOLCHAIN_OPTIONS_append_toolchain-clang_class-nativesdk_x86 = " -Wl,-dynamic-linker,${base_libdir}/ld-linux.so.2" + TOOLCHAIN_pn-lzo = "clang" DEPENDS_append_pn-lzo = " clang-cross-${TARGET_ARCH} " -- cgit v1.2.3-54-g00ecf