deps: fix openssl build on windows
authorBen Noordhuis <info@bnoordhuis.nl>
Sun, 24 Mar 2013 21:53:07 +0000 (22:53 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Sun, 24 Mar 2013 21:53:11 +0000 (22:53 +0100)
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

index 68d89ce..0b08ecd 100644 (file)
           'defines': [
             'MK1MF_BUILD',
             'WIN32_LEAN_AND_MEAN'
-          ]
+          ],
+          'link_settings': {
+            'libraries': [
+              '-lgdi32.lib',
+              '-luser32.lib',
+            ]
+          }
         }, {
           'defines': [
             # ENGINESDIR must be defined if OPENSSLDIR is.