--- a/hotspot/make/linux/makefiles/vm.make Tue Dec 14 15:10:52 2010 -0500
+++ b/hotspot/make/linux/makefiles/vm.make Wed Dec 15 05:43:54 2010 -0800
@@ -168,7 +168,9 @@
# Locate all source files in the given directory, excluding files in Src_Files_EXCLUDE.
define findsrc
- $(notdir $(shell find $(1) \( -name \*.c -o -name \*.cpp -o -name \*.s \) -a \! \( -name DUMMY $(addprefix -o -name ,$(Src_Files_EXCLUDE)) \) ))
+ $(notdir $(shell find $(1)/. ! -name . -prune \
+ -a \( -name \*.c -o -name \*.cpp -o -name \*.s \) \
+ -a ! \( -name DUMMY $(addprefix -o -name ,$(Src_Files_EXCLUDE)) \)))
endef
Src_Files := $(foreach e,$(Src_Dirs),$(call findsrc,$(e)))