diff options
author | Khem Raj <raj.khem@gmail.com> | 2021-05-26 17:29:01 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-09-08 09:08:54 -0700 |
commit | e8fcdd3735df17f8f433d4892b6cf0b4b544dc05 (patch) | |
tree | b4353f178019d364843be7664ea8a53439f350e2 | |
parent | b7ba897fd20f1a6c2e32068633994b7ee496c81b (diff) | |
download | meta-clang-e8fcdd3735df17f8f433d4892b6cf0b4b544dc05.tar.gz |
nss: Pass options to select runtime for native parts
Since clang maybe configured to use llvm runtime, we need to ensure to
use gnu runtime in native builds
Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 563e11548bfe95444d447e058001d3d1da5fe8e8)
-rw-r--r-- | conf/nonclangable.conf | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index f2bee64..f9bd591 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf | |||
@@ -291,7 +291,7 @@ COMPILER_RT_pn-libhugetlbfs_libc-glibc_toolchain-clang_arm = "-rtlib=libgcc" | |||
291 | # Uses gcc for native tools, e.g. nsinstall and passes clang options which fails so | 291 | # Uses gcc for native tools, e.g. nsinstall and passes clang options which fails so |
292 | # let same compiler ( gcc or clang) be native/cross compiler | 292 | # let same compiler ( gcc or clang) be native/cross compiler |
293 | # | gcc: error: unrecognized command line option ‘-Qunused-arguments’ | 293 | # | gcc: error: unrecognized command line option ‘-Qunused-arguments’ |
294 | BUILD_CC_pn-nss_toolchain-clang = "clang" | 294 | BUILD_CC_pn-nss_toolchain-clang = "clang -rtlib=libgcc -unwindlib=none" |
295 | 295 | ||
296 | # libnoprofile.c:19:5: error: expected parameter declarator | 296 | # libnoprofile.c:19:5: error: expected parameter declarator |
297 | # int printf(const char *format, ...) { | 297 | # int printf(const char *format, ...) { |