]> 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:14:33 +0000 (20:14 -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 ae0c3fc0aace3497878bfe753a2ffc94c0e2f73d..ccb5ed8bea106cd2923cbaf60f6865c3170e4b27 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)