From 54789f38162e12edd8bc2553ae7b72b558262f07 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 22 Nov 2002 04:23:05 +0000 Subject: * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Set __libc_multiple_libcs here. Call __setfpucw. * locale/localeinfo.h (struct locale_data): Revert last change. --- sysdeps/mach/hurd/i386/init-first.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sysdeps') diff --git a/sysdeps/mach/hurd/i386/init-first.c b/sysdeps/mach/hurd/i386/init-first.c index b3804cba92..af79d87d08 100644 --- a/sysdeps/mach/hurd/i386/init-first.c +++ b/sysdeps/mach/hurd/i386/init-first.c @@ -65,6 +65,16 @@ DEFINE_HOOK (_hurd_preinit_hook, (void)); static void posixland_init (int argc, char **argv, char **envp) { + __libc_multiple_libcs = &_dl_starting_up && !_dl_starting_up; + + /* Make sure we don't initialize twice. */ + if (!__libc_multiple_libcs) + { + /* Set the FPU control word to the proper default value. */ + __setfpucw (__fpu_control); + } + + /* Save the command-line arguments. */ __libc_argc = argc; __libc_argv = argv; __environ = envp; -- cgit 1.4.1