From 0021c9551471d4cd5045c414009c54c583c903c6 Mon Sep 17 00:00:00 2001 From: Yorkie Liu Date: Sat, 2 Sep 2017 20:30:14 +0800 Subject: [PATCH] build: fix shared installing target PR-URL: https://github.com/nodejs/node/pull/15148 Reviewed-By: Ruben Bridgewater Reviewed-By: Gibson Fahnestock Reviewed-By: Ben Noordhuis Reviewed-By: James M Snell --- tools/install.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/install.py b/tools/install.py index ea55c19ff41fe4..131f5be8833afc 100755 --- a/tools/install.py +++ b/tools/install.py @@ -124,7 +124,10 @@ def files(action): if sys.platform != 'darwin': output_prefix += 'lib.target/' - action([output_prefix + output_file], 'bin/' + output_file) + if 'false' == variables.get('node_shared'): + action([output_prefix + output_file], 'bin/' + output_file) + else: + action([output_prefix + output_file], 'lib/' + output_file) if 'true' == variables.get('node_use_dtrace'): action(['out/Release/node.d'], 'lib/dtrace/node.d')