From 690a8cce418c919cf99d798f640d317f2487c596 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sun, 24 Mar 2013 22:53:07 +0100 Subject: [PATCH] deps: fix openssl build on windows Commit 8632af3 ("tools: update gyp to r1601") broke the Windows build. Older versions of GYP link to kernel32.lib, user32.lib, etc. but that was changed in r1584. See https://codereview.chromium.org/12256017 Fix the build by explicitly linking to the required libraries. --- deps/openssl/openssl.gyp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/deps/openssl/openssl.gyp b/deps/openssl/openssl.gyp index 68d89ce9a2d..0b08ecdf5d6 100644 --- a/deps/openssl/openssl.gyp +++ b/deps/openssl/openssl.gyp @@ -882,7 +882,13 @@ 'defines': [ 'MK1MF_BUILD', 'WIN32_LEAN_AND_MEAN' - ] + ], + 'link_settings': { + 'libraries': [ + '-lgdi32.lib', + '-luser32.lib', + ] + } }, { 'defines': [ # ENGINESDIR must be defined if OPENSSLDIR is.