This is the mail archive of the
newlib@sourceware.cygnus.com
mailing list for the newlib project.
Re: newlib 1.8.2 binary!
- To: John Clarke <johnc at vastsystems dot com dot au>
- Subject: Re: newlib 1.8.2 binary!
- From: Marek Michalkiewicz <marekm at linux dot org dot pl>
- Date: Mon, 27 Mar 2000 20:19:40 +0200 (CEST)
- CC: newlib at sourceware dot cygnus dot com
John Clarke wrote:
> You're building in the source directory. newlib-1.8.1 allowed this, 1.8.2
> doesn't. I got caught by this too. Try this:
>
> #!/bin/sh
> tar -xzf newlib-1.8.2.tar.gz
> mkdir newlib-build
> cd newlib-build
> ../newlib-1.8.2/configure --target=i386
> make
It works - thanks! It is even documented (in newlib/README) that
you CAN do this (useful when building for several targets) but not
that you MUST do this (the usual "./configure --target=... ; make"
which doesn't work is mentioned earlier in the same file). I guess
most people build it in a separate directory so no one noticed.
I'd suggest to add this information to the README file (better yet,
configure should work in the source directory too, or at least exit
gracefully with a message explaining the problem) so that hopefully
no one will ask for "newlib binary" anymore :-).
Regards,
Marek