From mboxrd@z Thu Jan 1 00:00:00 1970
From: Pierre AUBERT
Date: Tue, 19 Nov 2002 16:58:54 +0100
Subject: [U-Boot-Users] Library order problem
References:
Message-ID: <3DDA5FBE.C3918386@staubli.com>
List-Id:
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
To: u-boot@lists.denx.de
Chuck Meade wrote:
> I believe that this is GNU-specific, but try surrounding $(LIBS)
> with the --start-group and --end-group switches. That has worked
> for me in the past when a group of interdependent libraries has
> needed multiple-scanning. This should allow just one instance of
> $(LIBS) as well.
>
You're right, it works for me with only one invocation of LIBS and the old
definition (with the board specific library in first).
I think it's a good way to solve this problem.
>
> Chuck Meade
> The PTR Group
>
> > Please note that the libraries are already searched twice:
> >
> > ...
> > u-boot: depend subdirs $(OBJS) $(LIBS) $(LDSCRIPT)
> > $(LD) $(LDFLAGS) $(OBJS) $(LIBS) $(LIBS) -Map u-boot.map -o u-boot
> >
> > This is ugly, and I really would like to get rid of this.
> >
> ...
> >
> > Maybe there is a better way? We used to have ranlib for things like
> > this, but it does not seem to help on PPC. Anybody any ideas?
> >
> > Best regards,
> >
> > Wolfgang Denk
Best regards