[U-Boot] [PATCH] Switch from archive libraries to partial linking

Andreas Bießmann
2010-11-10T08:01:19Z

Dear Mike Frysinger,

Am 10.11.2010 07:57, schrieb Mike Frysinger:
> On Monday, November 08, 2010 17:04:32 Sebastien Carlier wrote:

> the config.mk looks weird:
> +cmd_link_o_target = $(if $(strip $1),\
> + $(LD) -r -o $@ $1 ,\
> + rm -f $@; $(AR) rcs $@ )
>
> why do you need the rm/ar ?

If one input ($1) is empty the linker ($(LD) -r) would complain empty
input. Therefore we buid an empty archive with $(AR) rcs

regards

Andreas Bie?mann