What consists FreeBSD Libc?
unga888 at yahoo.com
Sun Jun 8 13:52:42 UTC 2008
--- On Sun, 6/8/08, Kris Kennaway <kris at FreeBSD.org> wrote:
> From: Kris Kennaway <kris at FreeBSD.org>
> Subject: Re: What consists FreeBSD Libc?
> To: unga888 at yahoo.com
> Cc: freebsd-questions at freebsd.org
> Date: Sunday, June 8, 2008, 6:37 PM
> Unga wrote:
> > Hi all
> > What consists FreeBSD Libc (/lib/libc.so.7)? Is it
> only /usr/src/lib/libc/* ?
> > I have compiled /usr/src/lib/libc/*, the resulting
> libc.so.7 is about 65,000 bytes smaller.
> Than what? It will change depending on your CFLAGS.
Thanks Kris & Wojciech for replies.
Its great to get it confirmed that FreeBSD Libc is only /usr/src/lib/libc/* as I presumed.
I have compiled and installed the FreeBSD Libc into a temp directory. The size of /tmp/libc.so.7 is about 65,000 bytes smaller than /lib/libc.so.7.
The /lib/libc.so.7 is dated May 25, 2008. I did not touch CFLAGS or anything other than DESTDIR. But I really forgot, the gcc version is different. The /lib/libc.so.7 is by gcc 4.2.1, but the /tmp/libc.so.7 is by gcc 4.3.0. May be the code generation of the latest gcc may be better.
I think the size difference may not be an issue as the libc is get it compiled and installed without any error.
The GNU glibc has a "make check", but there is no make check target for FreeBSD libc. How do you guys test it? Is the /usr/src/tools/regression/ any help for that?
More information about the freebsd-questions