aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/Makefile.build3
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) ;
255ifdef builtin-target 255ifdef builtin-target
256quiet_cmd_link_o_target = LD $@ 256quiet_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)
258cmd_link_o_target = $(if $(strip $(obj-y)),\ 259cmd_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