Sam Ravnborg
2006-Jul-09 09:41 UTC
[klibc] [PATCH] klibc/kbuild: fix warning: target '' given more than once
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.