summaryrefslogtreecommitdiff
path: root/tools/gyp/pylib/gyp/generator
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2017-04-18 02:20:56 -0400
committerRefael Ackermann <refack@gmail.com>2017-08-23 16:24:36 -0400
commit2550152395f48ade5261dcc8d0d63e44acb89702 (patch)
treee33e4685888dc27a08ed105d0a7bd66274bf15c3 /tools/gyp/pylib/gyp/generator
parente78a79af8cfdd73dad0e676210eef4d73b361a7a (diff)
downloadandroid-node-v8-2550152395f48ade5261dcc8d0d63e44acb89702.tar.gz
android-node-v8-2550152395f48ade5261dcc8d0d63e44acb89702.tar.bz2
android-node-v8-2550152395f48ade5261dcc8d0d63e44acb89702.zip
gyp: fix ninja build failure (GYP patch)
Currently the files specified in libraries in node.gyp `cctest` target are getting a '.lib' extension on windows when generated with ninja. This commit adds a check to see if a file has a '.obj' extension and in that case no '.lib' extension will be added. Also, the LIBS specified in the 'libraries' section are not being included in the --start-group --end-group section which means that these libraries will not be searched causing issue with linkers where the order matters. PR-URL: https://github.com/nodejs/node/pull/12484 Fixes: https://github.com/nodejs/node/issues/12448 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Diffstat (limited to 'tools/gyp/pylib/gyp/generator')
-rw-r--r--tools/gyp/pylib/gyp/generator/ninja.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gyp/pylib/gyp/generator/ninja.py b/tools/gyp/pylib/gyp/generator/ninja.py
index 0555a4a90d..1f67c94500 100644
--- a/tools/gyp/pylib/gyp/generator/ninja.py
+++ b/tools/gyp/pylib/gyp/generator/ninja.py
@@ -2148,13 +2148,13 @@ def GenerateOutputForConfig(target_list, target_dicts, data, params,
restat=True,
command=mtime_preserving_solink_base % {'suffix': '@$link_file_list'},
rspfile='$link_file_list',
- rspfile_content='-Wl,--start-group $in -Wl,--end-group $solibs $libs',
+ rspfile_content='-Wl,--start-group $in $solibs $libs -Wl,--end-group',
pool='link_pool')
master_ninja.rule(
'link',
description='LINK $out',
command=('$ld $ldflags -o $out '
- '-Wl,--start-group $in -Wl,--end-group $solibs $libs'),
+ '-Wl,--start-group $in $solibs $libs -Wl,--end-group'),
pool='link_pool')
elif flavor == 'win':
master_ninja.rule(