summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-01-09 20:00:39 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-24 09:40:30 +0000
commit21550d10bf27ed9dad63bbc23412bd3b7f0e9201 (patch)
treeac70b3590e7d9a1511a9db8e2803a0385f91641c /meta
parent92e6a7a8736f793f251b5ab6e8dea48c30fe8e68 (diff)
downloadpoky-21550d10bf27ed9dad63bbc23412bd3b7f0e9201.tar.gz
nss: Undefine HAVE_SYS_CDEFS_H
nss's build system assumes that cdefs.h is always available on linux which is not the case with musl (From OE-Core rev: c4a5a8c4a6dbdcf735024aaee9e36a7a7b56cb96) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-support/nss/nss_3.21.bb4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-support/nss/nss_3.21.bb b/meta/recipes-support/nss/nss_3.21.bb
index 24892b46bc..552fd6c77d 100644
--- a/meta/recipes-support/nss/nss_3.21.bb
+++ b/meta/recipes-support/nss/nss_3.21.bb
@@ -42,6 +42,10 @@ TDS = "${S}/tentative-dist-staging"
42 42
43TARGET_CC_ARCH += "${LDFLAGS}" 43TARGET_CC_ARCH += "${LDFLAGS}"
44 44
45do_configure_prepend_libc-musl () {
46 sed -i -e '/-DHAVE_SYS_CDEFS_H/d' ${S}/nss/lib/dbm/config/config.mk
47}
48
45do_compile_prepend_class-native() { 49do_compile_prepend_class-native() {
46 export NSPR_INCLUDE_DIR=${STAGING_INCDIR_NATIVE} 50 export NSPR_INCLUDE_DIR=${STAGING_INCDIR_NATIVE}
47 export NSPR_LIB_DIR=${STAGING_LIBDIR_NATIVE} 51 export NSPR_LIB_DIR=${STAGING_LIBDIR_NATIVE}