From e8fcdd3735df17f8f433d4892b6cf0b4b544dc05 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 26 May 2021 17:29:01 -0700 Subject: 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 (cherry picked from commit 563e11548bfe95444d447e058001d3d1da5fe8e8) --- conf/nonclangable.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" # Uses gcc for native tools, e.g. nsinstall and passes clang options which fails so # let same compiler ( gcc or clang) be native/cross compiler # | gcc: error: unrecognized command line option ‘-Qunused-arguments’ -BUILD_CC_pn-nss_toolchain-clang = "clang" +BUILD_CC_pn-nss_toolchain-clang = "clang -rtlib=libgcc -unwindlib=none" # libnoprofile.c:19:5: error: expected parameter declarator # int printf(const char *format, ...) { -- cgit v1.2.3-54-g00ecf