From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre AUBERT Date: Tue, 19 Nov 2002 16:48:16 +0100 Subject: [U-Boot-Users] Library order problem References: <20021119152509.88F6511767@denx.denx.de> Message-ID: <3DDA5D40.168D1549@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 Wolfgang Denk wrote: > In message <3DDA4D62.F255E9B3@staubli.com> you wrote: > > > > board directory. During the link phase, I have some errors because of > > undefined references to the board specific > > functions. These errors are due to the library order defined in the main > > Makefile. The board library is the first in the > > list. I've tried to change this order in the following way : > > Please note that the libraries are already searched twice: I know that, but even with the two passes, I still have some unresolved symbols. > > > ... > 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. > > > This modification solves my problem. I ran the MAKEALL script for 8xx, > > 8260, 824x and 74xx boards (I don't have any compiler for other > > processors) without any problem. > > > > What do you think about this modification ? > > 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 > > -- > Software Engineering: Embedded and Realtime Systems, Embedded Linux > Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de > Bus error -- please leave by the rear door. Regards