curl-users
Re: curl for ppc405
Date: Fri, 20 Dec 2002 08:50:47 +0100 (MET)
On Thu, 19 Dec 2002, l p wrote:
> HELP! Has anyone ever gotten curl to cross compile for PPC405 with tornado2
> tool chain on a Sun machine? I'm having a hard time getting configure to
> work, because it keeps complaining about not finding gethostbyname even
> though it is in one of the linked libraries. Anyone has tricks/tips on
> cross-compiling?
I have not tried to build curl cross-compiled on that particular platform,
no.
The general and yet very simple approach for cross-compiling is this:
./configure --host=my-target-system
I believe I experienced problems with the configure script's way of detecting
the random file, which doesn't work for cross compiles and then I had to use
the --with-random option explicitly and then it worked fine. (I did in fact
very recently build curl 7.10.2 for an XScale-based Linux.)
You mention a "tornado2 tool chain". That sounds VxWorks'ish. Is it? If so,
is that really compliant with all the posix/unix stuff curl might be using?
It complains on gethostbyname you say. Are you saying that configure
complains on it or is it a linker error message?
-- Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs. ------------------------------------------------------- This SF.NET email is sponsored by: Geek Gift Procrastinating? Get the perfect geek gift now! Before the Holidays pass you by. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/Received on 2002-12-20