From: Ulrich Drepper Date: Sat, 31 Aug 2002 18:23:37 +0000 (+0000) Subject: Only depend on Versions.v.i for errlist-compat.c if build-shared==yes. X-Git-Tag: cvs/glibc-2-3~258 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=64b6a1a4e490c2077c57f05de9c798458bfb28ec;p=glibc.git Only depend on Versions.v.i for errlist-compat.c if build-shared==yes. --- diff --git a/sysdeps/gnu/Makefile b/sysdeps/gnu/Makefile index 048e36a415..14c74be2f0 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'` \