config BR2_PACKAGE_LIBUPNP
        bool "libupnp"
        depends on BR2_LARGEFILE
+       depends on BR2_TOOLCHAIN_HAS_THREADS
        help
          The portable SDK for UPnP(tm) Devices (libupnp) provides developers
          with an API and open source code for building control points,
 
          http://pupnp.sourceforge.net/
 
-comment "libupnp requires a toolchain with LARGEFILE support"
-       depends on !BR2_LARGEFILE
+comment "libupnp requires a toolchain with LARGEFILE and thread support"
+       depends on !(BR2_LARGEFILE && BR2_TOOLCHAIN_HAS_THREADS)
 
 config BR2_PACKAGE_USHARE
        bool "ushare"
        depends on BR2_LARGEFILE
+       depends on BR2_TOOLCHAIN_HAS_THREADS # libupnp
        select BR2_PACKAGE_LIBUPNP
        select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
        help
 
          http://ushare.geexbox.org/
 
-comment "ushare requires a toolchain with LARGEFILE support"
-       depends on !BR2_LARGEFILE
+comment "ushare requires a toolchain with LARGEFILE and thread support"
+       depends on !(BR2_LARGEFILE && BR2_TOOLCHAIN_HAS_THREADS)