[U-Boot-Users] Library order problem

Chuck Meade chuck at ThePTRGroup.com
Tue Nov 19 16:39:00 CET 2002

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.

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 mailing list