]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
libnfs: Without native RPC use libtirpc
authorMaxime Hadjinlian <maxime.hadjinlian@gmail.com>
Sat, 3 Oct 2015 19:50:27 +0000 (21:50 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 4 Oct 2015 15:11:57 +0000 (16:11 +0100)
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>
package/libnfs/Config.in
package/libnfs/libnfs.mk

index 6642fe4258abc6a2db9409bdd90bd4b7d9d1a511..2a1ef03cd77d2edce2fdfd30c1374ddc61b81c0c 100644 (file)
@@ -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)
index 0c8c4f5c178b837c9a4847388f47d1d957282f81..fb95e21dbc413610a9b8f31a86b64d51846fa826 100644 (file)
@@ -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))