mirror of
git://sourceware.org/git/glibc.git
synced 2025-02-17 13:00:43 +08:00
Update.
2000-04-01 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/init-first.c (init): Add code from former init-first.h. Initialize __libc_multiple_libcs.
This commit is contained in:
parent
6674e127c9
commit
0adb8e479b
@ -1,3 +1,8 @@
|
|||||||
|
2000-04-01 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/init-first.c (init): Add code from
|
||||||
|
former init-first.h. Initialize __libc_multiple_libcs.
|
||||||
|
|
||||||
2000-03-31 Ulrich Drepper <drepper@redhat.com>
|
2000-03-31 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* iconv/skeleton.c: Define access macros with u suffix. Adjust
|
* iconv/skeleton.c: Define access macros with u suffix. Adjust
|
||||||
|
@ -58,6 +58,12 @@ static void
|
|||||||
init (int argc, char **argv, char **envp)
|
init (int argc, char **argv, char **envp)
|
||||||
{
|
{
|
||||||
extern void __getopt_clean_environment (char **);
|
extern void __getopt_clean_environment (char **);
|
||||||
|
/* The next variable is only here to work around a bug in gcc <= 2.7.2.2.
|
||||||
|
If the address would be taken inside the expression the optimizer
|
||||||
|
would try to be too smart and throws it away. Grrr. */
|
||||||
|
int *dummy_addr = &_dl_starting_up;
|
||||||
|
|
||||||
|
__libc_multiple_libcs = dummy_addr && !_dl_starting_up;
|
||||||
|
|
||||||
/* Make sure we don't initialize twice. */
|
/* Make sure we don't initialize twice. */
|
||||||
if (!__libc_multiple_libcs)
|
if (!__libc_multiple_libcs)
|
||||||
|
Loading…
Reference in New Issue
Block a user