[uClibc] How to compile application statically using uClibc

Manuel Novoa III mjn3 at codepoet.org
Thu May 13 19:48:47 UTC 2004


On Thu, May 13, 2004 at 12:30:51PM -0700, Kevin P. Fleming wrote:
> Manuel Novoa III wrote:
> 
> >On Thu, May 13, 2004 at 02:06:09AM -0700, Linton wrote:
> >
> >>I have gcc 2.96 in my system (redhat 7.3) and I have
> >>compiled uClibc-0.9.26 . I tried to  compile an
> >>application using those  uClibc library. But I am
> >>unable to get a statically linked output that uses
> >>uClibc library. It is using standard glibc. 
> >>
> >>I followedthis way:
> >>
> >>./configure  --libdir=<uClibc Lib directory> 
> >>
> >>make
> >
> >
> >It takes a lot more than the above...
> 
> Actually, based on what the OP wrote, I assumed that was the configure 
> command used to (attempt) compile of the application, not uClibc. If 
> that's true, then it's not even remotely related to actually linking 
> against uClibc.

My response was based on the entire post plus previous posts by Linton.

Manuel



More information about the uClibc mailing list