[uClibc] uclibc-gcc using wrong libraries when compiling?

David Meggy dmeggy at techsol.ca
Thu Apr 8 20:55:55 UTC 2004


On Wed, 2004-04-07 at 22:36, Scott Stickeler wrote: 

> #include <stdio.h>
> 
> void main ( void )
> {
>   printf("Hello World");
> }
> 
> If I use statically link the executable is 232339 bytes. If I dynamic link it is
> 8830 bytes. This seemed really big to me so I tried compiling the exact same

If you have everything included in uClibc this sounds about right. 
Locale support adds a lot to static programs.

> The libraries paths seem weird. Is this the problem or am I missing something?

gcc -v will show you what libraries are being pulled in.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~
     David Meggy
     Engineering

Technical Solutions Inc.
Unit #1 7157 Honeyman St
Delta BC Canada, V4G 1E2
     www.techsol.ca

eMail: dmeggy at techsol.ca
Tel: 604 946 TECH (8324)
Fax: 604 946 6445
~~~~~~~~~~~~~~~~~~~~~~~~




More information about the uClibc mailing list