From ed8c89a07d159b72a2e351a76c92b8b6a15515bd 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 afebb60e994597..d6793755cbc469 100755 --- a/tools/install.py +++ b/tools/install.py @@ -133,7 +133,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')