This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
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.
--