This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: experimental developments with glibc


>> > Is it possible to have 2 working libc libraries in the system

>>  ... using LD_PRELOAD may work in many [dyanmic linking] cases.  ...

> How would you easily test a static linkage with it ?

Consult the Makefile for each application, and/or the "-Wl,..." options
to gcc, and "info ld", etc., for possibilities in changing the
static linking environment for each application.

Note that static linking with glibc is specifically discouraged
because of the difficulties with keeping all its pieces synchronized
(ld-linux.so, libc.so, libc.a, libm, librt, libdl, libpthread,
libnsl, libnss, gconv, ...)  Glibc does not always detect
mismatches, and static linking increases the chances for trouble.
It is likely that you will deceive yourself.

-- 


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