]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/i386/init-first.c
update from main archive 970209
[thirdparty/glibc.git] / sysdeps / i386 / init-first.c
index 0fa08e9d170598829a8aebe677ab3f7eb7b9617c..4b83e192851ee4017c2ae934b60c6e7b1012c14c 100644 (file)
@@ -20,6 +20,7 @@
 #include <unistd.h>
 
 extern void __libc_init (int, char **, char **);
+extern void __getopt_clean_environment (void);
 extern void __libc_global_ctors (void);
 
 int __libc_multiple_libcs = 1;
@@ -33,6 +34,9 @@ init (int *data)
 
   __environ = envp;
   __libc_init (argc, argv, envp);
+
+  /* This is a hack to make the special getopt in GNU libc working.  */
+  __getopt_clean_environment ();
 }
 
 #ifdef PIC