diff options
Diffstat (limited to 'config.mk')
-rw-r--r-- | config.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config.mk b/config.mk index ce8e5f2dff5..19e0a6e4217 100644 --- a/config.mk +++ b/config.mk @@ -259,3 +259,10 @@ $(obj)%.s: %.c -o $@ $< -c -S ######################################################################### + +# If the list of objects to link is empty, just create an empty built-in.o +cmd_link_o_target = $(if $(strip $1),\ + $(LD) -r -o $@ $1 ,\ + rm -f $@; $(AR) rcs $@ ) + +######################################################################### |