From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?QW5kcmVhcyBCaWXDn21hbm4=?= Date: Wed, 10 Nov 2010 09:01:19 +0100 Subject: [U-Boot] [PATCH] Switch from archive libraries to partial linking In-Reply-To: <201011100157.31202.vapier@gentoo.org> References: <1289253872-16891-1-git-send-email-sebastien.carlier@gmail.com> <201011100157.31202.vapier@gentoo.org> Message-ID: <4CDA514F.7050103@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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