Skip to content

Commit e1d8899

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: #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 c76f737 commit e1d8899

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
@@ -4233,8 +4233,10 @@ void Init(int* argc,
42334233
if (config_warning_file.empty())
42344234
SafeGetenv("NODE_REDIRECT_WARNINGS", &config_warning_file);
42354235

4236+
#if HAVE_OPENSSL
42364237
if (openssl_config.empty())
42374238
SafeGetenv("OPENSSL_CONF", &openssl_config);
4239+
#endif
42384240

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

0 commit comments

Comments
 (0)