Add cryp32.lib to config.w32 dependent libs master
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 c37c61b..68006df 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("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) &&
                        CHECK_LIB("zlib.lib;zlib_a.lib", "http", PHP_HTTP) &&
                        ADD_EXTENSION_DEP("http", "propro", true) &&
                        ADD_EXTENSION_DEP("http", "raphf", true) &&