aboutsummaryrefslogtreecommitdiff
path: root/package/libnftnl
diff options
context:
space:
mode:
authorGravatar Alexander Clouter <alex+buildroot@digriz.org.uk>2015-01-18 14:23:20 +0000
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-01-26 23:33:40 +0100
commitf4aec35bf9c16fe94501b5ce5dca9e10be4495b1 (patch)
tree5ba29d8c8fa51bbf5276b2d461a8e171799ed572 /package/libnftnl
parent66d3cce7056c8996329c1aab6a71602bd8b37159 (diff)
downloadbuildroot-f4aec35bf9c16fe94501b5ce5dca9e10be4495b1.tar.gz
buildroot-f4aec35bf9c16fe94501b5ce5dca9e10be4495b1.tar.bz2
libnftl: loosen threads dependency
nftables works fine without threads, only the XML parsing support in libnftl requires -lpthread so move the depends into BR2_PACKAGE_LIBNFTNL_XML. [Thomas: tweak commit title and log.] Signed-off-by: Alexander Clouter <alex+buildroot@digriz.org.uk> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/libnftnl')
-rw-r--r--package/libnftnl/Config.in10
1 files changed, 6 insertions, 4 deletions
diff --git a/package/libnftnl/Config.in b/package/libnftnl/Config.in
index ffd9d5b8b7..af0bb4af45 100644
--- a/package/libnftnl/Config.in
+++ b/package/libnftnl/Config.in
@@ -2,7 +2,6 @@ config BR2_PACKAGE_LIBNFTNL
bool "libnftnl"
depends on BR2_INET_IPV6
depends on BR2_LARGEFILE
- depends on BR2_TOOLCHAIN_HAS_THREADS
# bad headers, no sa_family_t in linux/socket.h
depends on !(BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_POWERPC201103 || BR2_TOOLCHAIN_EXTERNAL_CODESOURCERY_POWERPC201009)
select BR2_PACKAGE_LIBMNL
@@ -25,12 +24,15 @@ config BR2_PACKAGE_LIBNFTNL_JSON
config BR2_PACKAGE_LIBNFTNL_XML
bool "enable XML support"
+ depends on BR2_TOOLCHAIN_HAS_THREADS
select BR2_PACKAGE_MXML
help
Enable XML parsing support
+comment "libnftnl XML parsing support needs a toolchain w/ threads"
+ depends on !BR2_TOOLCHAIN_HAS_THREADS
+
endif
-comment "libnftnl needs a toolchain w/ threads, IPv6, largefile"
- depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INET_IPV6 || \
- !BR2_LARGEFILE
+comment "libnftnl needs a toolchain w/ IPv6, largefile"
+ depends on !BR2_INET_IPV6 || !BR2_LARGEFILE