Skip to content
Browse files

src: add HAVE_OPENSSL directive to openssl_config

Currently when building with the following configuration options:
$ ./configure --without-ssl && make

The following link error is reported:

Undefined symbols for architecture x86_64:
  "node::openssl_config", referenced from:
      node::Init(int*, char const**, int*, char const***) in node.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see

Adding an HAVE_OPENSSL directive around this code allows the build to

PR-URL: #11618
Reviewed-By: Anna Henningsen <>
Reviewed-By: James M Snell <>
Reviewed-By: Colin Ihrig <>
Reviewed-By: Ben Noordhuis <>
Reviewed-By: Sam Roberts <>
  • Loading branch information...
danbev committed Feb 28, 2017
1 parent c76f737 commit e1d8899c28997613505d288d22bfb95470d606a1
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/
@@ -4233,8 +4233,10 @@ void Init(int* argc,
if (config_warning_file.empty())
SafeGetenv("NODE_REDIRECT_WARNINGS", &config_warning_file);

if (openssl_config.empty())
SafeGetenv("OPENSSL_CONF", &openssl_config);

// Parse a few arguments which are specific to Node.
int v8_argc;

0 comments on commit e1d8899

Please sign in to comment.
You can’t perform that action at this time.