]> code.ossystems Code Review - openembedded-core.git/commitdiff
nss: Undefine HAVE_SYS_CDEFS_H
authorKhem Raj <raj.khem@gmail.com>
Sun, 10 Jan 2016 04:00:39 +0000 (20:00 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 22 Jan 2016 23:42:52 +0000 (23:42 +0000)
nss's build system assumes that cdefs.h is always available on linux
which is not the case with musl

Signed-off-by: Khem Raj <raj.khem@gmail.com>
meta/recipes-support/nss/nss_3.21.bb

index 24892b46bc620b6118807c7694fdd0d8140e2b78..552fd6c77dfe5a755c27604bbed7d57ed8500a9c 100644 (file)
@@ -42,6 +42,10 @@ TDS = "${S}/tentative-dist-staging"
 
 TARGET_CC_ARCH += "${LDFLAGS}"
 
+do_configure_prepend_libc-musl () {
+    sed -i -e '/-DHAVE_SYS_CDEFS_H/d' ${S}/nss/lib/dbm/config/config.mk
+}
+
 do_compile_prepend_class-native() {
     export NSPR_INCLUDE_DIR=${STAGING_INCDIR_NATIVE}
     export NSPR_LIB_DIR=${STAGING_LIBDIR_NATIVE}