]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Don't make errlist.o[s].d depend on errlist-compat.h
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 9 May 2024 20:07:23 +0000 (13:07 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 10 May 2024 03:08:33 +0000 (20:08 -0700)
stdio-common/errlist.o.d and stdio-common/errlist.os.d aren't generated
alongside with stdio-common/errlist-compat.h.  Don't make them depend on
stdio-common/errlist-compat.h to avoid infinite loop with make-4.4.  This
fixes BZ #31330.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
Reviewed-by: Sunil K Pandey <skpgkp2@gmail.com>
sysdeps/gnu/Makefile

index 97fcb6fb909f3423fc81b026f85f029b8cd549a9..26dc91d90a9d8ceef008f48370de2722476c4aca 100644 (file)
@@ -54,8 +54,7 @@ $(objpfx)errlist-compat.h: $(objpfx)errlist-compat.c
 generated += errlist-compat.c errlist-compat.h
 
 # This will force the generation above to happy if need be.
-$(foreach o,$(object-suffixes) $(object-suffixes:=.d),\
-         $(objpfx)errlist$o): $(objpfx)errlist-compat.h
+$(foreach o,$(object-suffixes),$(objpfx)errlist$o): $(objpfx)errlist-compat.h
 endif
 
 ifeq ($(subdir),login)