wiringpi: needs threads
authorPeter Seiderer <ps.report@gmx.net>
Tue, 7 Jun 2016 18:43:01 +0000 (20:43 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 7 Jun 2016 19:31:55 +0000 (21:31 +0200)
Fixes [1]:

  wiringPi.c:66:21: fatal error: pthread.h: No such file or directory

[1] http://autobuild.buildroot.net/results/4e1/4e17697c1116b418d8d9c07a202f3c89186e463f

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/wiringpi/Config.in

index a292b3f5ff81041d4d2cd1b3b97d959f6af3758b..2062a6208eabeb7bd769a98aebb1593d679d604e 100644 (file)
@@ -1,7 +1,12 @@
 config BR2_PACKAGE_WIRINGPI
        bool "wiringpi"
        depends on BR2_USE_MMU # fork()
+       depends on BR2_TOOLCHAIN_HAS_THREADS
        help
          wiringPi libraries (and gpio command)
 
          http://wiringpi.com/
+
+comment "wiringpi needs a toolchain w/ threads"
+       depends on BR2_USE_MMU
+       depends on !BR2_TOOLCHAIN_HAS_THREADS