python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / nodejs / 0002-src-add-HAVE_OPENSSL-directive-to-openssl_config.patch
blobc28b967a6a69705956bb8d8921a301acea4357a1
1 From bfc6d25318e3bbf3d9c0389b33ad45ae1bc401f0 Mon Sep 17 00:00:00 2001
2 From: Daniel Bevenius <daniel.bevenius@gmail.com>
3 Date: Tue, 28 Feb 2017 20:04:12 +0100
4 Subject: [PATCH] src: add HAVE_OPENSSL directive to openssl_config
6 Currently when building with the following configuration options:
7 $ ./configure --without-ssl && make
9 The following link error is reported:
11 Undefined symbols for architecture x86_64:
12 "node::openssl_config", referenced from:
13 node::Init(int*, char const**, int*, char const***) in node.o
14 ld: symbol(s) not found for architecture x86_64
15 clang: error: linker command failed with exit code 1 (use -v to see
16 invocation)
18 Adding an HAVE_OPENSSL directive around this code allows the build to
19 pass.
21 PR-URL: https://github.com/nodejs/node/pull/11618
22 Reviewed-By: Anna Henningsen <anna@addaleax.net>
23 Reviewed-By: James M Snell <jasnell@gmail.com>
24 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
25 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
26 Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
27 [Martin: patch from https://github.com/nodejs/node/pull/11734]
28 Signed-off-by: Martin Bark <martin@barkynet.com>
29 ---
30 src/node.cc | 2 ++
31 1 file changed, 2 insertions(+)
33 diff --git a/src/node.cc b/src/node.cc
34 index 35d29bd..68362a7 100644
35 --- a/src/node.cc
36 +++ b/src/node.cc
37 @@ -4203,8 +4203,10 @@ void Init(int* argc,
38 SafeGetenv("NODE_PRESERVE_SYMLINKS", &text) && text[0] == '1';
41 +#if HAVE_OPENSSL
42 if (openssl_config.empty())
43 SafeGetenv("OPENSSL_CONF", &openssl_config);
44 +#endif
46 // Parse a few arguments which are specific to Node.
47 int v8_argc;