Skip to content

Commit 6ecb1cb

Browse files
committed
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 invocation) Adding an HAVE_OPENSSL directive around this code allows the build to pass. PR-URL: nodejs#11618 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Sam Roberts <[email protected]>
1 parent 3f6199c commit 6ecb1cb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/node.cc

+2
Original file line numberDiff line numberDiff line change
@@ -4311,8 +4311,10 @@ void Init(int* argc,
43114311
SafeGetenv("NODE_PRESERVE_SYMLINKS", &text) && text[0] == '1';
43124312
}
43134313

4314+
#if HAVE_OPENSSL
43144315
if (openssl_config.empty())
43154316
SafeGetenv("OPENSSL_CONF", &openssl_config);
4317+
#endif
43164318

43174319
#if !defined(NODE_WITHOUT_NODE_OPTIONS)
43184320
std::string node_options;

0 commit comments

Comments
 (0)