Add cryp32.lib to config.w32 dependent libs
authorJan Ehrhardt <github@ehrhardt.nl>
Wed, 1 Jan 2020 21:28:40 +0000 (22:28 +0100)
committerGitHub <noreply@github.com>
Wed, 1 Jan 2020 21:28:40 +0000 (22:28 +0100)
When linking to a libcurl_a.lib that is compiled with Schannel (--with-winssl) cryp32.lib is needed as dependant lib.
See https://github.com/curl/curl/issues/1147#issuecomment-263408263 for instance.

config.w32

index c37c61bd3cf0a7b1c4185a0c53365b8f67b08bbe..68006dfcf4f25428de2d4a7f4baa7643d132f826 100644 (file)
@@ -123,6 +123,7 @@ if (PHP_HTTP != "no") {
                        CHECK_LIB("normaliz.lib", "http", PHP_HTTP) &&
                        CHECK_LIB("libssl.lib;ssleay32.lib", "http", PHP_HTTP) &&
                        CHECK_LIB("libcrypto.lib;libeay32.lib", "http", PHP_HTTP) &&
+                       CHECK_LIB("crypt32.lib;libeay32.lib", "http", PHP_HTTP) &&
                        CHECK_LIB("zlib.lib;zlib_a.lib", "http", PHP_HTTP) &&
                        ADD_EXTENSION_DEP("http", "propro", true) &&
                        ADD_EXTENSION_DEP("http", "raphf", true) &&