aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-08-31 18:23:37 +0000
committerUlrich Drepper <drepper@redhat.com>2002-08-31 18:23:37 +0000
commit64b6a1a4e490c2077c57f05de9c798458bfb28ec (patch)
treed84914ea3292df21e5d780b8b3f34530d0e845a7 /sysdeps
parent78df0fcb80247ca7573a8ed07cc992b7031674c1 (diff)
downloadglibc-64b6a1a4e490c2077c57f05de9c798458bfb28ec.zip
glibc-64b6a1a4e490c2077c57f05de9c798458bfb28ec.tar.gz
glibc-64b6a1a4e490c2077c57f05de9c798458bfb28ec.tar.bz2
Only depend on Versions.v.i for errlist-compat.c if build-shared==yes.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/gnu/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/sysdeps/gnu/Makefile b/sysdeps/gnu/Makefile
index 048e36a..14c74be 100644
--- a/sysdeps/gnu/Makefile
+++ b/sysdeps/gnu/Makefile
@@ -32,9 +32,12 @@ endif
ifeq ($(subdir),stdio-common)
vpath errlist.c $(full_config_sysdirs)
-$(objpfx)errlist-compat.c: errlist.c \
- $(..)sysdeps/gnu/errlist-compat.awk \
- $(common-objpfx)Versions.v.i
+ifeq ($(build-shared),yes)
+$(objpfx)errlist-compat.c: errlist.c $(..)sysdeps/gnu/errlist-compat.awk \
+ $(common-objpfx)Versions.v.i
+else
+$(objpfx)errlist-compat.c: errlist.c $(..)sysdeps/gnu/errlist-compat.awk
+endif
$(AWK) -v maxerr=`\
$(CC) -S $(CPPFLAGS) $(CFLAGS) -DNOT_IN_libc -DEMIT_ERR_MAX $< -o - \
| sed -n 's/^.*@@@[^0-9]*\([0-9]*\)[^0-9]*@@@.*$$/\1/p'` \