make/common/MakeBase.gmk
branchihse-jdk-library-branch
changeset 56433 c3cf838aa2da
parent 49270 f6ad4d73c834
child 50590 5fa19bad622d
--- a/make/common/MakeBase.gmk	Thu Apr 12 14:11:59 2018 +0200
+++ b/make/common/MakeBase.gmk	Mon Apr 16 11:48:41 2018 +0200
@@ -634,7 +634,7 @@
 ################################################################################
 # Filter out duplicate sub strings while preserving order. Keeps the first occurance.
 uniq = \
-    $(if $1,$(firstword $1) $(call uniq,$(filter-out $(firstword $1),$1)))
+    $(strip $(if $1,$(firstword $1) $(call uniq,$(filter-out $(firstword $1),$1))))
 
 # Returns all whitespace-separated words in $2 where at least one of the
 # whitespace-separated words in $1 is a substring.