From 2b4083dd7205359d5085e55f95a968449413d8fd Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 5 Sep 1998 15:00:54 +0000 Subject: 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. --- sysdeps/mach/hurd/i386/Makefile | 1 + sysdeps/mach/hurd/i386/init-first.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'sysdeps') 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 (); -- cgit v1.2.3