aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1998-09-05 15:00:54 +0000
committerRoland McGrath <roland@gnu.org>1998-09-05 15:00:54 +0000
commit2b4083dd7205359d5085e55f95a968449413d8fd (patch)
tree7646c0ea16209d14eabe77c8510a984969beb9c0 /sysdeps
parent531e4bca8ea2931051e9ba458e2f486ac56d712a (diff)
downloadglibc-2b4083dd7205359d5085e55f95a968449413d8fd.zip
glibc-2b4083dd7205359d5085e55f95a968449413d8fd.tar.gz
glibc-2b4083dd7205359d5085e55f95a968449413d8fd.tar.bz2
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.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/mach/hurd/i386/Makefile1
-rw-r--r--sysdeps/mach/hurd/i386/init-first.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/i386/Makefile b/sysdeps/mach/hurd/i386/Makefile
index 49f609c..33b701d 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 c90ae3d..5bca3a6 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 ();