From: Chuck Meade Date: Tue, 19 Nov 2002 10:39:00 -0500 Subject: [U-Boot-Users] Library order problem In-Reply-To: <20021119152509.88F6511767@denx.denx.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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