Fixes:
http://autobuild.buildroot.net/results/383/
383c6ac297250f87db9d03afa38d45b2c1adcb47/
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
 
 config BR2_PACKAGE_GST1_PLUGINS_BAD_PLUGIN_WAYLAND
        bool "wayland"
+       depends on BR2_TOOLCHAIN_HAS_THREADS # wayland
        select BR2_PACKAGE_WAYLAND
        help
          Wayland Video Sink
 
 config BR2_PACKAGE_WAYLAND
        bool "wayland"
+       depends on BR2_TOOLCHAIN_HAS_THREADS
        select BR2_PACKAGE_LIBFFI
        select BR2_PACKAGE_EXPAT
        help
          of the protocol.
 
          http://wayland.freedesktop.org/
+
+comment "wayland requires a toolchain with thread support"
+       depends on !BR2_TOOLCHAIN_HAS_THREADS
 
        select BR2_PACKAGE_JPEG
        select BR2_PACKAGE_MTDEV
        depends on BR2_PACKAGE_UDEV
+       depends on BR2_TOOLCHAIN_HAS_THREADS # wayland
        # Runtime dependency
        select BR2_PACKAGE_XKEYBOARD_CONFIG
        # Make sure at least one backend is selected