diff options
author | Roland McGrath <roland@gnu.org> | 2004-10-20 10:04:57 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2004-10-20 10:04:57 +0000 |
commit | 4b359a27dd5c9d76e507db782a8e907e20c1df95 (patch) | |
tree | 4f3828f0c7b8c93b35716f90f88b0b326180f323 /sysdeps/gnu/Makefile | |
parent | 13772215fc3cfd7b15674698e276cd18d44f1c1f (diff) | |
download | glibc-4b359a27dd5c9d76e507db782a8e907e20c1df95.tar.gz |
2004-10-20 Roland McGrath <roland@redhat.com>
* sysdeps/gnu/errlist-compat.awk: Don't bail if Versions gives a count
higher than ERR_MAX reports. Instead, emit a #define ERR_MAX.
* sysdeps/gnu/Makefile ($(objpfx)errlist-compat.h): New target.
(generated): Add errlist-compat.h.
* sysdeps/gnu/errlist.awk: Make output #include <errlist-compat.h> to
define ERR_MAX and use that for table size.
Diffstat (limited to 'sysdeps/gnu/Makefile')
-rw-r--r-- | sysdeps/gnu/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sysdeps/gnu/Makefile b/sysdeps/gnu/Makefile index dee0c67bcf..0fc33213ae 100644 --- a/sysdeps/gnu/Makefile +++ b/sysdeps/gnu/Makefile @@ -49,10 +49,14 @@ endif # Make it unwritable so noone will edit it by mistake. -chmod a-w $@T mv -f $@T $@ -generated += errlist-compat.c +$(objpfx)errlist-compat.h: $(objpfx)errlist-compat.c + sed -n '1p;/ERR_MAX/p' $< > $@T + -chmod a-w $@T + mv -f $@T $@ +generated += errlist-compat.c errlist-compat.h # This will force the generation above to happy if need be. -$(foreach o,.d $(object-suffixes),$(objpfx)errlist$o):$(objpfx)errlist-compat.c +$(foreach o,.d $(object-suffixes),$(objpfx)errlist$o):$(objpfx)errlist-compat.h endif ifeq ($(subdir),login) |