make/common/MakeBase.gmk
changeset 37030 e047c2f3f510
parent 36506 17612cee3530
child 37406 ffe907153695
--- a/make/common/MakeBase.gmk	Wed Apr 13 00:00:37 2016 -0700
+++ b/make/common/MakeBase.gmk	Wed Apr 13 18:11:29 2016 +0200
@@ -723,12 +723,13 @@
 endif
 
 ################################################################################
-# Return a string suitable for use after a -classpath option. It will correct and safe to use
-# on all platforms. Arguments are given as space separate classpath entries.
+# Return a string suitable for use after a -classpath or -modulepath option. It
+# will be correct and safe to use on all platforms. Arguments are given as space
+# separate classpath entries. Safe for multiple nested calls.
 # param 1 : A space separated list of classpath entries
 # The surrounding strip is needed to keep additional whitespace out
 PathList = \
-  "$(subst $(SPACE),$(PATH_SEP),$(strip $1))"
+  "$(subst $(SPACE),$(PATH_SEP),$(strip $(subst $(DQUOTE),,$1)))"
 
 ################################################################################