[U-Boot-Users] Library order problem
p.aubert at staubli.com
Tue Nov 19 16:58:54 CET 2002
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
More information about the U-Boot