Skip to content

Commit fe17e9b

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 9f73df5 commit fe17e9b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/node.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4220,8 +4220,10 @@ void Init(int* argc,
42204220
SafeGetenv("NODE_PRESERVE_SYMLINKS", &text) && text[0] == '1';
42214221
}
42224222

4223+
#if HAVE_OPENSSL
42234224
if (openssl_config.empty())
42244225
SafeGetenv("OPENSSL_CONF", &openssl_config);
4226+
#endif
42254227

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

0 commit comments

Comments
 (0)