aboutsummaryrefslogtreecommitdiff
path: root/tools/buildsteps/windows/patches/0001-ffmpeg-detect-openssl.patch
blob: d5277ecc4165c52e91e86fe3ed6c1914a0410437 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 18de5c60ae0a987680681d5a0602009b428504fa Mon Sep 17 00:00:00 2001
From: Gilles Khouzam <gillesk@microsoft.com>
Date: Mon, 19 Jun 2017 16:33:38 -0700
Subject: [PATCH] Add better detection for Openssl on Windows.

Look for libeay32 and ssleay32 as another detection mechanism
---
 configure | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure b/configure
index a1818dc..1cf2a7c 100755
--- a/configure
+++ b/configure
@@ -6147,6 +6147,8 @@
                                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 ||
+                               check_lib openssl openssl/ssl.h OPENSSL_init_ssl -llibssl -llibcrypto -lws2_32 -lgdi32 -ladvapi32 -luser32 ||
+                               check_lib openssl openssl/ssl.h SSL_library_init -llibeay32 -lssleay32 ||
                                die "ERROR: openssl not found"; }
 enabled rkmpp             && { require_pkg_config rkmpp rockchip_mpp  rockchip/rk_mpi.h mpp_create &&
                                require_pkg_config rockchip_mpp "rockchip_mpp >= 1.3.7" rockchip/rk_mpi.h mpp_create &&
-- 
2.10.1.windows.1