Only depend on Versions.v.i for errlist-compat.c if build-shared==yes.

This commit is contained in:
Ulrich Drepper 2002-08-31 18:23:37 +00:00
parent 78df0fcb80
commit 64b6a1a4e4

View File

@ -32,9 +32,12 @@ endif
ifeq ($(subdir),stdio-common) ifeq ($(subdir),stdio-common)
vpath errlist.c $(full_config_sysdirs) vpath errlist.c $(full_config_sysdirs)
$(objpfx)errlist-compat.c: errlist.c \ ifeq ($(build-shared),yes)
$(..)sysdeps/gnu/errlist-compat.awk \ $(objpfx)errlist-compat.c: errlist.c $(..)sysdeps/gnu/errlist-compat.awk \
$(common-objpfx)Versions.v.i $(common-objpfx)Versions.v.i
else
$(objpfx)errlist-compat.c: errlist.c $(..)sysdeps/gnu/errlist-compat.awk
endif
$(AWK) -v maxerr=`\ $(AWK) -v maxerr=`\
$(CC) -S $(CPPFLAGS) $(CFLAGS) -DNOT_IN_libc -DEMIT_ERR_MAX $< -o - \ $(CC) -S $(CPPFLAGS) $(CFLAGS) -DNOT_IN_libc -DEMIT_ERR_MAX $< -o - \
| sed -n 's/^.*@@@[^0-9]*\([0-9]*\)[^0-9]*@@@.*$$/\1/p'` \ | sed -n 's/^.*@@@[^0-9]*\([0-9]*\)[^0-9]*@@@.*$$/\1/p'` \