Skip to content

Commit

Permalink
build: add node_use_openssl check to install.py
Browse files Browse the repository at this point in the history
When configuring --without-ssl and then running make install
openssl headers will be copied from deps/openssl to the target
installation directory.

This commit adds a check for is node_use_openssl is set in which
case the headers are not copied.

PR-URL: nodejs#11766
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Brian White <[email protected]>
  • Loading branch information
danbev committed Mar 13, 2017
1 parent ea5a2f4 commit 471aa19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ def headers(action):
if 'false' == variables.get('node_shared_libuv'):
subdir_files('deps/uv/include', 'include/node/', action)

if 'false' == variables.get('node_shared_openssl'):
if 'true' == variables.get('node_use_openssl') and \
'false' == variables.get('node_shared_openssl'):
subdir_files('deps/openssl/openssl/include/openssl', 'include/node/openssl/', action)
subdir_files('deps/openssl/config/archs', 'include/node/openssl/archs', action)
action(['deps/openssl/config/opensslconf.h'], 'include/node/openssl/')
Expand Down

0 comments on commit 471aa19

Please sign in to comment.