From e12e1efec886ca0b6966107d60f578785c6ac429 Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Fri, 1 Apr 2022 19:05:41 +0000 Subject: [PATCH] tcmode-external: don't pass --no-sysroot-suffix for clang Signed-off-by: Christopher Larson --- conf/distro/include/tcmode-external.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/distro/include/tcmode-external.inc b/conf/distro/include/tcmode-external.inc index a3c35e9..a0fec05 100644 --- a/conf/distro/include/tcmode-external.inc +++ b/conf/distro/include/tcmode-external.inc @@ -71,7 +71,9 @@ BB_HASHBASE_WHITELIST_remove = "EXTERNAL_TOOLCHAIN" # added to the oe sysroot path, as those dirs will not exist. # TOOLCHAIN_OPTIONS would seem more appropriate, but that gets added to LD as # well, and --no-sysroot-suffix only works for gcc, not binutils. -HOST_CC_ARCH += "--no-sysroot-suffix" +NO_SYSROOT_SUFFIX = " --no-sysroot-suffix" +NO_SYSROOT_SUFFIX_toolchain-clang = "" +HOST_CC_ARCH .= "${NO_SYSROOT_SUFFIX}" # Certain recipes call ld directly, so ensure the correct emulation is used, # particularly for multilib toolchains, since we can't rely on the default