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.

	* sysdeps/mach/hurd/i386/Makefile (omit-deps): Define to crt0.
This commit is contained in:
Roland McGrath 1998-09-05 15:00:54 +00:00
parent 531e4bca8e
commit 2b4083dd72
3 changed files with 9 additions and 1 deletions

View File

@ -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.

View File

@ -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)

View File

@ -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 ();