package/libressl: depend on threads
authorNicolas Cavallari <nicolas.cavallari@green-communications.fr>
Wed, 8 Sep 2021 13:30:10 +0000 (15:30 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Mon, 20 Sep 2021 19:03:41 +0000 (21:03 +0200)
If the toolchain does not have threads (e.g. br-arm-full-nothread),
compilation fails:

In file included from /home/fail/br-test-pkg/br-arm-full-nothread/build/libressl-3.3.3/crypto/cryptlib.c:117:
/home/fail/br-test-pkg/br-arm-full-nothread/build/libressl-3.3.3/crypto/../include/compat/pthread.h:114:15: fatal error: pthread.h: No such file or directory
  114 | #include_next <pthread.h>
      |               ^~~~~~~~~~~
compilation terminated.

Signed-off-by: Nicolas Cavallari <nicolas.cavallari@green-communications.fr>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/openssl/Config.in

index f79bac28fae5fb60249da7ac208c5150d6d5c1e2..7bf49b05f66e9edca3cfe23257247f3b9f1b6cb2 100644 (file)
@@ -33,6 +33,7 @@ source "package/libopenssl/Config.in"
 config BR2_PACKAGE_LIBRESSL
        bool "libressl"
        depends on !BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL
+       depends on BR2_TOOLCHAIN_HAS_THREADS
        # uClibc on noMMU doesn't provide __register_atfork()
        depends on !(BR2_TOOLCHAIN_USES_UCLIBC && !BR2_USE_MMU)
        help