This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Selective LibC


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]