[klibc] [PATCH] klibc/kbuild: fix warning: target '' given more than once

Sam Ravnborg sam at ravnborg.org
Sun Jul 9 02:41:58 PDT 2006

Building static and shared binary which uses subdirs caused a warning
due to duplicated targets.

Signed-off-by: Sam Ravnborg <sam at ravnborg.org>

diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc
index 1741fa8..f2ef939 100644
--- a/scripts/Kbuild.klibc
+++ b/scripts/Kbuild.klibc
@@ -312,7 +312,7 @@ # Descending
 # ---------------------------------------------------------------------------
 .PHONY: $(subdir-y) $(klibc-dirs)
-$(subdir-y) $(klibc-dirs):
+$(sort $(subdir-y) $(klibc-dirs)):
 	$(Q)$(MAKE) $(klibc)=$@
 # Add FORCE to the prequisites of a target to force it to be always rebuilt.

More information about the klibc mailing list