[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: “libtool” uses wrong gcc and ld. How to fix it?

From: Ralf Wildenhues
Subject: Re: “libtool” uses wrong gcc and ld. How to fix it?
Date: Tue, 31 Mar 2009 20:27:49 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

[ reply-to set ]

Hello Gary,

* Gary Yang wrote on Tue, Mar 31, 2009 at 08:12:23PM CEST:
> I am doing the cross compile. The libtool uses wrong gcc and ld. It
> should use "/tools/eldk/4.2/ppc_4xx/usr/bin/ld", not
> "/usr/local/bin/ld". It should be “/tools/eldk/4.2/usr/bin/ppc_4xx-gcc
> –shared”, not gcc –shared. See below. How to fix it?

Did you create /tools/eldk/4.2/ppc_4xx/usr/bin/libtool?
If yes, how, and can you pass LD=... CC=... correctly to
the configure script of Libtool?
If no, who did?  It looks like they should fix that.

You can maybe work around it by editing the libtool script
and adjusting the first $CC and $LD settings (for C; for
other languages you may need to adjust near the end of the
script).  However, this is hacky and might just break the
script unless it really was created for ppc_4xx-gcc.

Hope that helps.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]