From 6975c490d11d4aa937c9df6835f4e75ac8c72cee 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')