about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--sysdeps/mach/hurd/i386/Makefile1
-rw-r--r--sysdeps/mach/hurd/i386/init-first.c2
3 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1ead6569ea..f929887f55 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
+1998-09-05  Mark Kettenis  <kettenis@phys.uva.nl>
+
+	* sysdeps/mach/hurd/i386/init-first.c (init1): Call
+	__getopt_clean_environment with __environ instead of envp.
+
 1998-09-05  Roland McGrath  <roland@baalperazim.frob.com>
 
+	* sysdeps/mach/hurd/i386/Makefile (omit-deps): Define to crt0.
+
 	* string/argz-extract.c (__argz_extract): Add de-consting cast for
 	setting results.
 
diff --git a/sysdeps/mach/hurd/i386/Makefile b/sysdeps/mach/hurd/i386/Makefile
index 49f609c510..33b701df04 100644
--- a/sysdeps/mach/hurd/i386/Makefile
+++ b/sysdeps/mach/hurd/i386/Makefile
@@ -1,6 +1,7 @@
 ifeq ($(subdir),csu)
 extra-objs += crt0.o
 install-lib += crt0.o
+omit-deps += crt0
 
 $(objpfx)crt0.o: $(objpfx)static-start.o $(objpfx)abi-note.o $(objpfx)init.o
 	$(link-relocatable)
diff --git a/sysdeps/mach/hurd/i386/init-first.c b/sysdeps/mach/hurd/i386/init-first.c
index c90ae3d3fd..5bca3a6b09 100644
--- a/sysdeps/mach/hurd/i386/init-first.c
+++ b/sysdeps/mach/hurd/i386/init-first.c
@@ -113,7 +113,7 @@ init1 (int argc, char *arg0, ...)
   __libc_init (argc, argv, __environ);
 
   /* This is a hack to make the special getopt in GNU libc working.  */
-  __getopt_clean_environment (envp);
+  __getopt_clean_environment (__environ);
 
 #ifdef PIC
   __libc_global_ctors ();