diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.lib | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index e1e0ba481..22c64306b 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib | |||
@@ -117,6 +117,7 @@ a_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(CPPFLAGS) \ | |||
117 | 117 | ||
118 | cpp_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(__cpp_flags) | 118 | cpp_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(__cpp_flags) |
119 | 119 | ||
120 | # TODO: seems to be a wrong thing to do! LDFLAGS contains gcc's flags! | ||
120 | ld_flags = $(LDFLAGS) $(EXTRA_LDFLAGS) | 121 | ld_flags = $(LDFLAGS) $(EXTRA_LDFLAGS) |
121 | 122 | ||
122 | # Finds the multi-part object the current object will be linked into | 123 | # Finds the multi-part object the current object will be linked into |
@@ -146,6 +147,8 @@ $(obj)/%:: $(src)/%_shipped | |||
146 | # Linking | 147 | # Linking |
147 | # --------------------------------------------------------------------------- | 148 | # --------------------------------------------------------------------------- |
148 | 149 | ||
150 | # TODO: LDFLAGS usually is supposed to contain gcc's flags, not ld's. | ||
151 | # but here we feed them to ld! | ||
149 | quiet_cmd_ld = LD $@ | 152 | quiet_cmd_ld = LD $@ |
150 | cmd_ld = $(LD) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LDFLAGS_$(@F)) \ | 153 | cmd_ld = $(LD) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LDFLAGS_$(@F)) \ |
151 | $(filter-out FORCE,$^) -o $@ | 154 | $(filter-out FORCE,$^) -o $@ |