From: Khem Raj Date: Sun, 10 Jan 2016 04:00:39 +0000 (-0800) Subject: nss: Undefine HAVE_SYS_CDEFS_H X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~27448 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4a5a8c4a6dbdcf735024aaee9e36a7a7b56cb96;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Khem Raj --- diff --git a/meta/recipes-support/nss/nss_3.21.bb b/meta/recipes-support/nss/nss_3.21.bb index 24892b46bc6..552fd6c77df 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" 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}