]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
libpjsip: needs threads
authorLuca Ceresoli <luca@lucaceresoli.net>
Mon, 7 Mar 2016 21:56:44 +0000 (22:56 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 8 Mar 2016 20:14:20 +0000 (21:14 +0100)
Builds without thread support fail with the following error:

  ../src/pj/os_core_unix.c:45:21: fatal error: pthread.h: No such file or directory
   #include <pthread.h>
                       ^
  compilation terminated.

Fixes:
  http://autobuild.buildroot.org/results/744/744431e1b47d22222c4d0b48d5d20649dfeed929/
  http://autobuild.buildroot.org/results/a10/a10aca9139054502e055cb61f3925637fc515e12/

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/libpjsip/Config.in

index 45387c4b39b90d09c988ade2aa043d2b89121ff6..980fada3d5fb36c9029322f5f96592edd02c2e73 100644 (file)
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_LIBPJSIP
        bool "libpjsip"
        depends on BR2_INSTALL_LIBSTDCPP
+       depends on BR2_TOOLCHAIN_HAS_THREADS
        help
          PJSIP is a free and open source multimedia communication
          library written in C language implementing standard based
@@ -8,5 +9,5 @@ config BR2_PACKAGE_LIBPJSIP
 
          http://www.pjsip.org
 
-comment "libpjsip needs a toolchain w/ C++"
-       depends on !BR2_INSTALL_LIBSTDCPP
+comment "libpjsip needs a toolchain w/ C++, threads"
+       depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS