From d13640f39f8f467597daa42774102329e82d9b68 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 12 Jul 2016 23:38:49 -0700 Subject: nss: Fix build with clang Add a patch to disable a clang specific warning and avoid passing clang options to gcc when we have cross compiler is clang but host compiler is gcc We do not need to use target cflags when building native pieces and hence avoid the inter-mixing of compiler options Signed-off-by: Khem Raj Signed-off-by: Ross Burton --- meta/recipes-support/nss/nss_3.24.bb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta/recipes-support/nss/nss_3.24.bb') diff --git a/meta/recipes-support/nss/nss_3.24.bb b/meta/recipes-support/nss/nss_3.24.bb index 95a33f27d3..caed7fa894 100644 --- a/meta/recipes-support/nss/nss_3.24.bb +++ b/meta/recipes-support/nss/nss_3.24.bb @@ -20,6 +20,7 @@ SRC_URI = "\ file://nss-no-rpath-for-cross-compiling.patch \ file://nss-fix-incorrect-shebang-of-perl.patch \ file://nss-fix-nsinstall-build.patch \ + file://disable-Wvarargs-with-clang.patch \ file://nss.pc.in \ file://signlibs.sh \ " @@ -62,6 +63,7 @@ do_compile_prepend_class-native() { do_compile() { export CROSS_COMPILE=1 export NATIVE_CC="gcc" + export NATIVE_FLAGS="${HOST_CFLAGS}" export BUILD_OPT=1 export FREEBL_NO_DEPEND=1 -- cgit v1.2.3