Browse files

build: fix openssl link error on windows

This commit attempts to fix an issue when building on windows using the
following command line options:
.\vcbuild.bat dll debug x64 vc2015

This will result in the following options passed to configure:
configure --debug --shared --dest-cpu=x64 --tag=

This commit excludes the dependency to openssl if node is configured
with --shared.

Also, FP_API to the categories to export in mkssldef when generating
the module definition (openssl.def) allowing the build to compile and
link successfully.

Fixes: #12952
PR-URL: #13078
Reviewed-By: Ben Noordhuis <>
Reviewed-By: Refael Ackermann <>
  • Loading branch information...
danbev authored and jasnell committed May 16, 2017
1 parent 6e4394f commit 46bd32e7e8fdf2c29d7e56bc086cfa5f482e6380
Showing with 2 additions and 2 deletions.
  1. +2 −2 node.gyp
@@ -277,7 +277,7 @@
# Categories to export.
# Defines.
# Symbols to filter from the export list.
@@ -671,7 +671,7 @@
[ 'node_shared_openssl=="false"', {
[ 'node_shared_openssl=="false" and node_shared=="false"', {
'dependencies': [

0 comments on commit 46bd32e

Please sign in to comment.