jdk/make/Profiles.gmk
changeset 25866 82d7101d5cab
parent 25859 3317bb8137f4
--- a/jdk/make/Profiles.gmk	Sun Aug 17 15:56:32 2014 +0100
+++ b/jdk/make/Profiles.gmk	Wed Jul 05 19:55:15 2017 +0200
@@ -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 += \