Building an old uClibc version with gcc

Laurent Bercot ska-dietlibc at skarnet.org
Tue Aug 23 05:12:39 UTC 2011


> I understand about static/dynamic linking, but would prefer dynamic to keep
> memory usage down

 You are falling for a widespread myth.

1. Build a static tcpsvd+httpd busybox with an Aboriginal Linux toolchain.
2. Run it, with 40 simultaneous client connections to the web server.
3. Use the 'memstat' utility to report how much memory you are using.
4. Be amazed at your low memory usage.

 If you insist on linking your applications dynamically to save memory,
fine, but you *will* have to link them against the version of uClibc that
is on your system, so you *will* have to manually build a toolchain for
that version. That is a lot more effort for a very small benefit.

-- 
 Laurent


More information about the uClibc mailing list