[uClibc]uclibc/gcc wrapper missing /usr/include??

mike-uclibc at tiedyenetworks.com mike-uclibc at tiedyenetworks.com
Tue Dec 31 02:18:22 UTC 2002


On Mon, 30 Dec 2002, Erik Andersen wrote:

> You are absolutely correct.  It most certainly is _not_
> adding include files from /usr/include.  It has its own
> set of libraries and include files.
> 
> You seem to want to use the GNU MP library with uClibc.
> That should be fine.  Just recompile libgmp against
> uClibc and install it into your uClibc development area
> so you will have /usr/i386-linux-uclibc/include/gmp.h
> and /usr/i386-linux-uclibc/lib/libgmp.so and of course
> /usr/i386-linux-uclibc/lib/libgmp.so.3.2.1 installed and
> compiled vs uClibc.  This is critically important, since
> your system libgmp is compiled vs glibc...
> 
> Be sure to also compile any other libraries used by your
> application vs uClibc.  I really should add this to the 
> uClibc FAQ.

	Yeah I got that part loud and clear. I didn't see that gmp needed 
it's header files installed in uclibc's include directory, as these aren't 
likely to change simply because of the library the binary libgmp.so was 
linked against (seperately libgmp is being compiled against uclibc 
anyways). Why I'm bothering is that I have a rather complicated build 
system that integrates a number of opensource packages. The challenges are 
to ensure that everything is compiled against the target kernel's headers, 
and linked against the resulting packages libraries. It also ensures that 
there is no file spray - meaning, that the host that compiles and builds 
the packages for, does not wind up with _any_ left over copies in any 
system directories. This is opposed to many badly developed RPM packages 
that end up overwriting files on the host as a side-effect of the 
package's build process, for example. 

	I guess I could solve the overt problem by having a private copy 
of uclibc and having the libraries I build install their headers here. The 
private copy would have to be wiped out and re-installed at the beginning 
of the top-level build. I guess I'll try that. 

	Thanks for your quick response.

-- 

       TieDye Networks - peace, love, and fast downloads in the redwoods!

		Zoinks, scoob! Haunted flying saucers! 





More information about the uClibc mailing list