This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Selective LibC
- To: "Yu Xuanwei" <yxw at chinacluster dot com>
- Subject: Re: Selective LibC
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 03 Jan 2001 06:09:15 -0200
- Cc: <gcc at gcc dot gnu dot org>
- Organization: GCC Team, Red Hat
- References: <001e01c07557$7b86a4c0$6400000a@sinocluster.com>
On Jan 3, 2001, "Yu Xuanwei" <yxw@chinacluster.com> wrote:
> I am eager to know how I can utilize glibc2.0 instead of glibc2.1,
> which is too large. Has GCC a option or switcher to customize which
> version glibC should be linked in RedHat6.1, which has both
> glibC2.0/2.1.
GCC knows nothing in particular about glibc. It looks for libraries
indicated with -L flags, but it does specify the name of the dynamic
linker when running ld (collect2). Add `-v' to the link command to
see for yourself. It's the linker that knows about standard search
paths. I *think* all you have to do to get another version of libc
linked in is to create a link named libc.so in some directory you tell
the linker to search for libraries in. The link should point to the
actual libc shared library you want to use.
You might have to modify the name of the interpreter too, but I doubt
it's necessary or wise to do.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me