diff -r 836adbf7a2cd -r 3317bb8137f4 jdk/make/Profiles.gmk --- a/jdk/make/Profiles.gmk Sun Aug 10 19:39:01 2014 -0700 +++ b/jdk/make/Profiles.gmk Sun Aug 17 15:54:13 2014 +0100 @@ -265,11 +265,11 @@ include profile-rtjar-includes.txt # Function to expand foo/*.class into the set of classes -# NOTE: Classfiles with $ in their name are problematic as that is the -# meta-character for both make and the shell! Hence the \$$$$ substitution. +# NOTE: Files found by wildcard are stipped of extra $, so call DoubleDollar +# to keep the file names compatible with make. # But note that if you echo these values they will NOT display as expected. -class_list = $(patsubst $(JDK_OUTPUTDIR)/classes/%,%, \ - $(foreach i, $(1), $(subst $$,\$$$$, $(wildcard $(JDK_OUTPUTDIR)/classes/$i)))) +class_list = $(foreach dir, $(JDK_OUT_CLASSES), $(patsubst $(dir)/%,%, \ + $(foreach i, $(1), $(call DoubleDollar, $(wildcard $(dir)/$i))))) ifeq ($(PROFILE), profile_1) RT_JAR_EXCLUDES += \