@@ -147,7 +147,7 @@ def CalculateGeneratorInputInfo(params):
147
147
# special "figure out circular dependencies" flags around the entire
148
148
# input list during linking.
149
149
quiet_cmd_link = LINK($(TOOLSET)) $@
150
- cmd_link = $(LINK.$(TOOLSET)) $ (GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o $@ -Wl,--start-group $(LD_INPUTS) $(LIBS) -Wl,--end-group
150
+ cmd_link = $(LINK.$(TOOLSET)) -o $@ $ (GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,--start-group $(LD_INPUTS) $(LIBS) -Wl,--end-group
151
151
152
152
# We support two kinds of shared objects (.so):
153
153
# 1) shared_library, which is just bundling together many dependent libraries
@@ -166,10 +166,10 @@ def CalculateGeneratorInputInfo(params):
166
166
# - Set SONAME to the library filename so our binaries don't reference
167
167
# the local, absolute paths used on the link command-line.
168
168
quiet_cmd_solink = SOLINK($(TOOLSET)) $@
169
- cmd_solink = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -o $@ -Wl,--whole-archive $(LD_INPUTS) -Wl,--no-whole-archive $(LIBS)
169
+ cmd_solink = $(LINK.$(TOOLSET)) -o $@ - shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -Wl,--whole-archive $(LD_INPUTS) -Wl,--no-whole-archive $(LIBS)
170
170
171
171
quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@
172
- cmd_solink_module = $(LINK.$(TOOLSET)) -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -o $@ -Wl,--start-group $(filter-out FORCE_DO_CMD, $^) -Wl,--end-group $(LIBS)
172
+ cmd_solink_module = $(LINK.$(TOOLSET)) -o $@ - shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -Wl,--start-group $(filter-out FORCE_DO_CMD, $^) -Wl,--end-group $(LIBS)
173
173
"""
174
174
175
175
LINK_COMMANDS_MAC = """\
@@ -360,10 +360,10 @@ def CalculateGeneratorInputInfo(params):
360
360
# - quiet_cmd_foo is the brief-output summary of the command.
361
361
362
362
quiet_cmd_cc = CC($(TOOLSET)) $@
363
- cmd_cc = $(CC.$(TOOLSET)) $ (GYP_CFLAGS) $(DEPFLAGS) $(CFLAGS.$(TOOLSET)) -c -o $@ $<
363
+ cmd_cc = $(CC.$(TOOLSET)) -o $@ $< $ (GYP_CFLAGS) $(DEPFLAGS) $(CFLAGS.$(TOOLSET)) -c
364
364
365
365
quiet_cmd_cxx = CXX($(TOOLSET)) $@
366
- cmd_cxx = $(CXX.$(TOOLSET)) $ (GYP_CXXFLAGS) $(DEPFLAGS) $(CXXFLAGS.$(TOOLSET)) -c -o $@ $<
366
+ cmd_cxx = $(CXX.$(TOOLSET)) -o $@ $< $ (GYP_CXXFLAGS) $(DEPFLAGS) $(CXXFLAGS.$(TOOLSET)) -c
367
367
%(extra_commands)s
368
368
quiet_cmd_touch = TOUCH $@
369
369
cmd_touch = touch $@
@@ -1756,7 +1756,7 @@ def WriteMakeRule(self, outputs, inputs, actions=None, comment=None,
1756
1756
cmddigest = hashlib .sha1 (command if command else self .target ).hexdigest ()
1757
1757
intermediate = "%s.intermediate" % (cmddigest )
1758
1758
self .WriteLn ('%s: %s' % (' ' .join (outputs ), intermediate ))
1759
- self .WriteLn ('\t %s' % '@:' );
1759
+ self .WriteLn ('\t %s' % '@:' )
1760
1760
self .WriteLn ('%s: %s' % ('.INTERMEDIATE' , intermediate ))
1761
1761
# Don't add `force_append` (FORCE_DO_CMD) to the intermediate sentinal.
1762
1762
# Adding it makes the action run alway, even when there are no changes.
0 commit comments