From e3c732bb0c9bbed9516bfabe0c1ea50d27cbb93f Mon Sep 17 00:00:00 2001 From: macweng Date: Tue, 10 Dec 2019 17:32:33 +0800 Subject: [PATCH] configure: add OPENSSL_init_ssl check if pkg-config fail fix when pkg-config fail and openssl > 1.1.0 --enable-openssl fail, the root cause is check_lib can't found the SSL_library_init(). Reviewed-by: James Almer Signed-off-by: macweng --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index ca7137f341a..42e7df39418 100755 --- a/configure +++ b/configure @@ -6403,6 +6403,7 @@ enabled omx_rpi && { test_code cc OMX_Core.h OMX_IndexConfigBrcmVideoR enabled omx && require_headers OMX_Core.h enabled openssl && { check_pkg_config openssl openssl openssl/ssl.h OPENSSL_init_ssl || check_pkg_config openssl openssl openssl/ssl.h SSL_library_init || + check_lib openssl openssl/ssl.h OPENSSL_init_ssl -lssl -lcrypto || check_lib openssl openssl/ssl.h SSL_library_init -lssl -lcrypto || check_lib openssl openssl/ssl.h SSL_library_init -lssl32 -leay32 || check_lib openssl openssl/ssl.h SSL_library_init -lssl -lcrypto -lws2_32 -lgdi32 || -- 2.39.2