diff options
author | macweng <macweng@tencent.com> | 2019-12-10 12:32:33 +0300 |
---|---|---|
committer | Jun Zhao <barryjzhao@tencent.com> | 2019-12-11 09:46:53 +0300 |
commit | e3c732bb0c9bbed9516bfabe0c1ea50d27cbb93f (patch) | |
tree | 95472bbb30e66214aba2cc16ee51ae19a0f65ebc | |
parent | 952fd0c768747a0f910ce8b689fd23d7c67a51f8 (diff) |
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 <jamrial@gmail.com>
Signed-off-by: macweng <macweng@tencent.com>
-rwxr-xr-x | configure | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 || |