Skip to Content.
Sympa Menu

baslinux - Re: [BL] compiling with uclibc

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: sindi keesan <keesan AT sdf.lonestar.org>
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] compiling with uclibc
  • Date: Fri, 27 Jan 2006 05:03:05 +0000 (UTC)

On Thu, 26 Jan 2006, David Moberg wrote:

sindi keesan wrote:

For programs that don't use any of the common libraries, could I compile
dynamically and run the programs from within uclibc, such as pilot-link,
which needs libpilot, libc libm and ld-linux, or copy these to
/usr/local/bin and /usr/local/lib or /lib and run them?

Yes. ld-uClibc.so.0 must be in /lib, but anything else can be put
anywhere in your library path.

/lib /usr/lib /usr/local/lib /usr/X11R6/lib ?


They are half the size of glibc-dynamic programs. uclibc-pilot
link (many programs about 75K each) plus the uclibc libraries
is probably still smaller than glibc-pilot link (both dynamically
compiled).

Most dynamic uClibc binaries are about the same size as glibc
equivalents. You seem to have found an exception to the rule.
The uclibc static lynx was half the size of the glibc static one.

I thought in the case of dynamically compiled programs just a small
reference to the library was built in, so why are glibc dynamic programs
so much larger?

Does ldd give the same output with both binaries? If it does,
the differing gcc versions may make a difference.
The output is entirely different.

uclibc dynamic version needs libc.so and libm.so (uclibc version, they are symlinked) and the uClibc ld-linux, the glibc version libc.so.6 and ld-linux 2 (no libm).

>
David




Archive powered by MHonArc 2.6.24.

Top of Page