From 2b4083dd7205359d5085e55f95a968449413d8fd Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 5 Sep 1998 15:00:54 +0000 Subject: [PATCH] 1998-09-05 Mark Kettenis * 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. --- ChangeLog | 7 +++++++ sysdeps/mach/hurd/i386/Makefile | 1 + sysdeps/mach/hurd/i386/init-first.c | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1ead6569ea..f929887f55 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ +1998-09-05 Mark Kettenis + + * sysdeps/mach/hurd/i386/init-first.c (init1): Call + __getopt_clean_environment with __environ instead of envp. + 1998-09-05 Roland McGrath + * 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 (); -- 2.43.5