mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-23 00:00:06 +01:00
![]() openssl can be built without threads resulting in the following build failure: -- Looking for HMAC_CTX_new -- Looking for HMAC_CTX_new - not found [...] In file included from /home/buildroot/autobuild/instance-0/output-1/build/libwebsockets-4.3.1/include/libwebsockets.h:661, from /home/buildroot/autobuild/instance-0/output-1/build/libwebsockets-4.3.1/lib/core/./private-lib-core.h:140, from /home/buildroot/autobuild/instance-0/output-1/build/libwebsockets-4.3.1/lib/plat/unix/unix-misc.c:28: /home/buildroot/autobuild/instance-0/output-1/build/libwebsockets-4.3.1/include/libwebsockets/lws-genhash.h:85:18: error: field 'ctx' has incomplete type 85 | HMAC_CTX ctx; | ^~~ To fix this build failure, don't unconditionally add pthread if openssl has been found through pkg-config as openssl.pc will contain the appropriate dependencies (i.e. -lpthread but also -lz or -latomic) Fixes: - http://autobuild.buildroot.org/results/2ae9e3249b6fcc9e6c30e7783e264fc6599e61df Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> |
||
---|---|---|
.. | ||
mbedtls | ||
openssl | ||
CMakeLists.txt | ||
lws-gencrypto-common.c | ||
lws-genec-common.c | ||
private-jit-trust.h | ||
private-lib-tls.h | ||
private-network.h | ||
tls-client.c | ||
tls-jit-trust.c | ||
tls-network.c | ||
tls-server.c | ||
tls-sessions.c | ||
tls.c |