diff options
author | Khem Raj <raj.khem@gmail.com> | 2016-01-09 20:00:39 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-22 23:42:52 +0000 |
commit | c4a5a8c4a6dbdcf735024aaee9e36a7a7b56cb96 (patch) | |
tree | 53a343c6d6b4b3f89116317898bcef7cabf5a12a /meta/recipes-support/nss | |
parent | b9c870a25757ab11f4167c076449a3de537247cf (diff) | |
download | openembedded-core-contrib-c4a5a8c4a6dbdcf735024aaee9e36a7a7b56cb96.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
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta/recipes-support/nss')
-rw-r--r-- | meta/recipes-support/nss/nss_3.21.bb | 4 |
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 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} |