]> code.ossystems Code Review - openembedded-core.git/commitdiff
apr: control ipv6 support based on DISTRO_FEATURES
authorJackie Huang <jackie.huang@windriver.com>
Mon, 22 Aug 2016 09:05:54 +0000 (17:05 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 3 Sep 2016 22:45:43 +0000 (23:45 +0100)
Add PACKAGECONFIG for ipv6 and control it based
on DISTRO_FEATURES.

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/apr/apr_1.5.2.bb

index db1530530a8bf25a4b23e7a2894b6636a4f6c8e1..302c93504b2ffeec0502a294c87508f539c9e589 100644 (file)
@@ -38,6 +38,9 @@ CACHED_CONFIGUREVARS += "ac_cv_header_netinet_sctp_h=no ac_cv_header_netinet_sct
 # x86_64-linux-libtool:   error: specify a tag with '--tag'
 CCACHE = ""
 
+PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)}"
+PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6,"
+
 do_configure_prepend() {
        # Avoid absolute paths for grep since it causes failures
        # when using sstate between different hosts with different