diff options
author | Jackie Huang <jackie.huang@windriver.com> | 2016-08-22 17:06:08 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-01 21:57:46 +0100 |
commit | f338838adfa9da9d08dc49dfd6b32947ff39347c (patch) | |
tree | 2a8312c642edaa7cef7b26b8d3b87d012140dd06 | |
parent | d010938581c5face91166250ab06a82a0ac54d4f (diff) | |
download | openembedded-core-contrib-f338838adfa9da9d08dc49dfd6b32947ff39347c.tar.gz |
wget: control ipv6 support based on DISTRO_FEATURES
Add PACKAGECONFIG for ipv6 and control it based
on DISTRO_FEATURES instead of unconditionally enabled.
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-extended/wget/wget.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/recipes-extended/wget/wget.inc b/meta/recipes-extended/wget/wget.inc index dc381a6280..c4abfe490e 100644 --- a/meta/recipes-extended/wget/wget.inc +++ b/meta/recipes-extended/wget/wget.inc @@ -9,7 +9,7 @@ INC_PR = "r16" inherit autotools gettext texinfo update-alternatives pkgconfig -EXTRA_OECONF = "--enable-ipv6 --with-ssl=gnutls --disable-rpath --disable-iri \ +EXTRA_OECONF = "--with-ssl=gnutls --disable-rpath --disable-iri \ --without-libgnutls-prefix ac_cv_header_uuid_uuid_h=no" ALTERNATIVE_${PN} = "wget" @@ -20,8 +20,9 @@ RRECOMMENDS_${PN} += "ca-certificates" BBCLASSEXTEND += "nativesdk" -PACKAGECONFIG ??= "" +PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'ipv6', 'ipv6', '', d)}" PACKAGECONFIG[libuuid] = "--with-libuuid, --without-libuuid,util-linux" +PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," # Let aclocal use the relative path for the m4 file rather than # absolute, otherwise there might be an "Argument list too long" error |