[FFmpeg-cvslog] configure: add OPENSSL_init_ssl check if pkg-config fail

macweng git at videolan.org
Wed Dec 11 08:49:10 EET 2019


ffmpeg | branch: master | macweng <macweng at tencent.com> | Tue Dec 10 17:32:33 2019 +0800| [e3c732bb0c9bbed9516bfabe0c1ea50d27cbb93f] | committer: Jun Zhao

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 at gmail.com>
Signed-off-by: macweng <macweng at tencent.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e3c732bb0c9bbed9516bfabe0c1ea50d27cbb93f
---

 configure | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure b/configure
index ca7137f341..42e7df3941 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 ||



More information about the ffmpeg-cvslog mailing list