aboutsummaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorGravatar Maxime Hadjinlian <maxime.hadjinlian@gmail.com>2015-10-03 21:50:27 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-10-04 16:11:57 +0100
commitc1a20960c4a291c977bddb0ca6eabe193d9a18e6 (patch)
tree0e3104986fd3f975d52537830d38abaf4a17a947 /package
parent231fdc7c5448d1b79752bbaa849a2532b678f209 (diff)
downloadbuildroot-c1a20960c4a291c977bddb0ca6eabe193d9a18e6.tar.gz
buildroot-c1a20960c4a291c977bddb0ca6eabe193d9a18e6.tar.bz2
libnfs: Without native RPC use libtirpc
Signed-off-by Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package')
-rw-r--r--package/libnfs/Config.in7
-rw-r--r--package/libnfs/libnfs.mk4
2 files changed, 8 insertions, 3 deletions
diff --git a/package/libnfs/Config.in b/package/libnfs/Config.in
index 6642fe4258..2a1ef03cd7 100644
--- a/package/libnfs/Config.in
+++ b/package/libnfs/Config.in
@@ -1,10 +1,11 @@
config BR2_PACKAGE_LIBNFS
bool "libnfs"
- depends on BR2_TOOLCHAIN_HAS_NATIVE_RPC
+ depends on BR2_TOOLCHAIN_HAS_NATIVE_RPC || BR2_TOOLCHAIN_HAS_THREADS # libtirpc
+ select BR2_PACKAGE_LIBTIRPC if !BR2_TOOLCHAIN_HAS_NATIVE_RPC
help
nfs userspace implementation.
http://github.com/sahlberg/libnfs
-comment "libnfs needs a toolchain w/ RPC"
- depends on !BR2_TOOLCHAIN_HAS_NATIVE_RPC
+comment "libnfs needs a toolchain w/ threads"
+ depends on !(BR2_TOOLCHAIN_HAS_THREADS || BR2_TOOLCHAIN_HAS_NATIVE_RPC)
diff --git a/package/libnfs/libnfs.mk b/package/libnfs/libnfs.mk
index 0c8c4f5c17..fb95e21dbc 100644
--- a/package/libnfs/libnfs.mk
+++ b/package/libnfs/libnfs.mk
@@ -13,4 +13,8 @@ LIBNFS_LICENSE = LGPLv2.1+
LIBNFS_LICENSE_FILES = LICENCE-LGPL-2.1.txt
LIBNFS_DEPENDENCIES = host-pkgconf
+ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
+LIBNFS_DEPENDENCIES += libtirpc
+endif
+
$(eval $(autotools-package))