summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/nss/nss_3.24.bb
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-07-12 23:38:49 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-20 10:28:47 +0100
commit17dcf19d867eb15d5eadedfda99b18b3b0c379bb (patch)
tree755c7f514fe6d55d0c983399783949d4e26c45ba /meta/recipes-support/nss/nss_3.24.bb
parent317447f1d1d18b0e7e5ca837270f9ebf476fdcac (diff)
downloadpoky-17dcf19d867eb15d5eadedfda99b18b3b0c379bb.tar.gz
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 (From OE-Core rev: d13640f39f8f467597daa42774102329e82d9b68) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/nss/nss_3.24.bb')
-rw-r--r--meta/recipes-support/nss/nss_3.24.bb2
1 files changed, 2 insertions, 0 deletions
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 = "\
20 file://nss-no-rpath-for-cross-compiling.patch \ 20 file://nss-no-rpath-for-cross-compiling.patch \
21 file://nss-fix-incorrect-shebang-of-perl.patch \ 21 file://nss-fix-incorrect-shebang-of-perl.patch \
22 file://nss-fix-nsinstall-build.patch \ 22 file://nss-fix-nsinstall-build.patch \
23 file://disable-Wvarargs-with-clang.patch \
23 file://nss.pc.in \ 24 file://nss.pc.in \
24 file://signlibs.sh \ 25 file://signlibs.sh \
25" 26"
@@ -62,6 +63,7 @@ do_compile_prepend_class-native() {
62do_compile() { 63do_compile() {
63 export CROSS_COMPILE=1 64 export CROSS_COMPILE=1
64 export NATIVE_CC="gcc" 65 export NATIVE_CC="gcc"
66 export NATIVE_FLAGS="${HOST_CFLAGS}"
65 export BUILD_OPT=1 67 export BUILD_OPT=1
66 68
67 export FREEBL_NO_DEPEND=1 69 export FREEBL_NO_DEPEND=1