Skip to content

Commit 690a8cc

Browse files
committed
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.
1 parent c0d5001 commit 690a8cc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

deps/openssl/openssl.gyp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -882,7 +882,13 @@
882882
'defines': [
883883
'MK1MF_BUILD',
884884
'WIN32_LEAN_AND_MEAN'
885-
]
885+
],
886+
'link_settings': {
887+
'libraries': [
888+
'-lgdi32.lib',
889+
'-luser32.lib',
890+
]
891+
}
886892
}, {
887893
'defines': [
888894
# ENGINESDIR must be defined if OPENSSLDIR is.

0 commit comments

Comments
 (0)