[PATCH] buildsys: Add support for bringing librt as needed.

Rich Felker dalias at aerifal.cx
Fri Nov 18 02:12:08 UTC 2011


On Thu, Nov 17, 2011 at 11:18:16AM -0500, Mike Frysinger wrote:
> On Wednesday 16 November 2011 05:24:28 William Pitcock wrote:
> > This helps improve portability with broken applications which expect that
> > linking directly against libc will bring in mq_*() functions.
> 
> sorry, but no.  fix the broken apps.  glibc has the same "problem".

For what it's worth, having them in a separate library to begin with
is purely a waste of resources. Every additional .so file loaded
consumes several pages of memory, and of course disk space is also
wasted on extra elf headers and block alignment. Copying the glibc
practice of separating libpthread and librt from libc was just a
mistake that should really be corrected... Users who don't want to
waste the space for these functions can just disable them in the build
config...

Rich


More information about the uClibc mailing list