From 606c8a8ecac566177fef8659ee8b7e5d0cfd8962 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 22 Jan 2020 09:53:14 -0800 Subject: nss: Use clang for native compiler as well MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes | gcc: error: unrecognized command line option ‘-Qunused-arguments’ | make[2]: *** [../../coreconf/rules.mk:393: Linux3.4_arm_glibc_PTH_OPT.OBJ/nsinstall.o] Error 1 Signed-off-by: Khem Raj --- conf/nonclangable.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index 9069bca..60f7939 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf @@ -262,3 +262,8 @@ COMPILER_RT_pn-aufs-util_libc-glibc_toolchain-clang_arm = "--rtlib=libgcc" COMPILER_RT_pn-libhugetlbfs_libc-glibc_toolchain-clang_arm = "--rtlib=libgcc" RUNTIME_pn-gerbera_toolchain-clang = "llvm" + +# 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" -- cgit v1.2.3-54-g00ecf