about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-03-13 00:45:44 +0000
committerRoland McGrath <roland@gnu.org>1995-03-13 00:45:44 +0000
commit66e3dda448406399136e6f144a1b46679d5b2613 (patch)
treebdbe200dd7250b0e3208521f6ac2e8d9ae0f5341
parent424f8c09fa436a2caa212484d93501cab8eaa39f (diff)
downloadglibc-66e3dda448406399136e6f144a1b46679d5b2613.tar.gz
glibc-66e3dda448406399136e6f144a1b46679d5b2613.tar.xz
glibc-66e3dda448406399136e6f144a1b46679d5b2613.zip
Kludge no longer necessary
-rw-r--r--Makeconfig4
-rw-r--r--mach/Makefile5
-rw-r--r--mach/errsystems.c27
3 files changed, 1 insertions, 35 deletions
diff --git a/Makeconfig b/Makeconfig
index 4cd8061e3c..b10ec81fb9 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -74,8 +74,6 @@ common-objdir = .
 endif
 endif
 
-libc.a = $(common-objpfx)libc.a
-
 
 # Get the values defined by options to `configure'.
 include $(common-objpfx)config.make
@@ -249,7 +247,7 @@ endif
 ifndef +link
 +link = $(CC) -nostdlib $(LDFLAGS) -o $@ \
 	$(addprefix $(csu-objpfx),start.o $(+preinit)) \
-	$(^:lib=$(libc.a)) $(gnulib) $(libc.a) \
+	$(^:lib=$(common-objpfx)libc.a) $(gnulib) $(common-objpfx)libc.a \
 	$(addprefix $(csu-objpfx),$(+postinit))
 endif
 ifndef gnulib
diff --git a/mach/Makefile b/mach/Makefile
index ce2670092e..5f1ecae342 100644
--- a/mach/Makefile
+++ b/mach/Makefile
@@ -183,13 +183,8 @@ endif
 # Be sure not to make these with implicit rules from foo.defs.
 mach.h mach/memory_object.h: ;
 
-ifeq (,)
-# XXX we have an errsystems.c here because a gcc bug makes the generated
-# version lose.
-else
 generated += errsystems.c
 $(objpfx)errsystems.c: errsystems.awk err_*.sub \
 		       $(wildcard $(addsuffix /err_*.sub,$(+sysdep_dirs)))
 	gawk -v subsys='$(filter-out $<,$^)' -f $^ > $@.n
 	mv $@.n $@
-endif
diff --git a/mach/errsystems.c b/mach/errsystems.c
deleted file mode 100644
index 19909607f8..0000000000
--- a/mach/errsystems.c
+++ /dev/null
@@ -1,27 +0,0 @@
-/* XXX temp kludge: this file should be generated, but a gcc bug screws it. */
-
-#include <mach/error.h>
-#include <errorlib.h>
-#define static static const
-#include "../sysdeps/mach/hurd/err_hurd.sub"
-#include "err_us.sub"
-#include "err_server.sub"
-#include "err_mach.sub"
-#include "err_kern.sub"
-#include "err_ipc.sub"
-#include "err_boot.sub"
-
-
-const struct error_system __mach_error_systems[err_max_system + 1] =
-  {
-    /* 0 [err_get_system (err_kern)] = */ { errlib_count (err_kern_sub),"(system kern) error with unknown subsystem", err_kern_sub },
-    /* 1 [err_get_system (err_us)] = */ { errlib_count (err_us_sub),"(system us) error with unknown subsystem", err_us_sub },
-    /* 2 [err_get_system (err_server)] = */ { errlib_count (err_server_sub),"(system server) error with unknown subsystem", err_server_sub },
-    /* 3 [err_get_system (err_ipc)] = */ { errlib_count (err_ipc_sub),"(system ipc) error with unknown subsystem", err_ipc_sub },
-    /* 4 [err_get_system (err_mach_ipc)] = */ { errlib_count (err_mach_ipc_sub),"(system mach_ipc) error with unknown subsystem", err_mach_ipc_sub },
-    /* 5 [err_get_system (err_bootstrap)] = */ { errlib_count (err_bootstrap_sub),"(system bootstrap) error with unknown subsystem", err_bootstrap_sub },
- /* [6..15] */ {},{},{},{},{},{},{},{},{},{},
-    /* 16==0x10 [err_get_system (err_hurd)] = */ { errlib_count (err_hurd_sub),"(system hurd) error with unknown subsystem", err_hurd_sub },
-  };
-
-const int __mach_error_system_count = errlib_count (__mach_error_systems);