From: Jackie Huang Date: Mon, 22 Aug 2016 09:06:03 +0000 (+0800) Subject: nspr: control ipv6 support based on DISTRO_FEATURES X-Git-Tag: uninative-1.4~323 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=b7e045d0cb3d06b9e197ec985fc82c373f006d5c;p=openembedded-core.git nspr: control ipv6 support based on DISTRO_FEATURES Add PACKAGECONFIG for ipv6 and control it based on DISTRO_FEATURES. Signed-off-by: Jackie Huang Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-support/nspr/nspr_4.12.bb b/meta/recipes-support/nspr/nspr_4.12.bb index 168341bc05..fa6d52357d 100644 --- a/meta/recipes-support/nspr/nspr_4.12.bb +++ b/meta/recipes-support/nspr/nspr_4.12.bb @@ -147,6 +147,9 @@ TESTS = " \ inherit autotools +PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)}" +PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," + do_compile_prepend() { oe_runmake CROSS_COMPILE=1 CFLAGS="-DXP_UNIX" LDFLAGS="" CC=gcc -C config export }