libvncserver: fix build without pthread
authorPeter Korsgaard <peter@korsgaard.com>
Wed, 13 Nov 2013 08:07:41 +0000 (09:07 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 13 Nov 2013 08:07:41 +0000 (09:07 +0100)
Fixes http://autobuild.buildroot.net/results/761/7618028d0781269d2f6f0a14d814da456f207475/

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libvncserver/libvncserver.mk

index fe48838fdaa4a8d3197da9b6886a72b3afd9f149..a96b8c5541ec5c28b9eb2af52aa3ad3534bbe7f7 100644 (file)
@@ -15,6 +15,10 @@ LIBVNCSERVER_CONFIG_SCRIPTS = libvncserver-config
 # only used for examples
 LIBVNCSERVER_CONF_OPT += --with-sdl-config=/bin/false
 
+ifneq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
+LIBVNCSERVER_CONF_OPT += --without-pthread
+endif
+
 ifneq ($(BR2_INET_IPV6),y)
 LIBVNCSERVER_CONF_OPT += --without-ipv6
 endif