diff options
-rw-r--r-- | scripts/Makefile.build | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 5685b5bcc..5eac45f91 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
@@ -255,8 +255,9 @@ $(sort $(subdir-obj-y)): $(subdir-ym) ; | |||
255 | ifdef builtin-target | 255 | ifdef builtin-target |
256 | quiet_cmd_link_o_target = LD $@ | 256 | quiet_cmd_link_o_target = LD $@ |
257 | # If the list of objects to link is empty, just create an empty built-in.o | 257 | # If the list of objects to link is empty, just create an empty built-in.o |
258 | # -nostdlib is added to make "make LD=gcc ..." work (some people use that) | ||
258 | cmd_link_o_target = $(if $(strip $(obj-y)),\ | 259 | cmd_link_o_target = $(if $(strip $(obj-y)),\ |
259 | $(LD) $(ld_flags) -r -o $@ $(filter $(obj-y), $^),\ | 260 | $(LD) -nostdlib $(ld_flags) -r -o $@ $(filter $(obj-y), $^),\ |
260 | rm -f $@; $(AR) rcs $@) | 261 | rm -f $@; $(AR) rcs $@) |
261 | 262 | ||
262 | $(builtin-target): $(obj-y) FORCE | 263 | $(builtin-target): $(obj-y) FORCE |