changeset 52924:44ce940b344b jdk-11.0.7+10 jdk-11.0.7-ga

8237879: make 4.3 breaks build Reviewed-by: erikj, tbell
author ihse
date Thu, 30 Jan 2020 11:08:30 +0100
parents 3e9703cb7e46
children d8021213c9c3
files make/common/MakeBase.gmk
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/make/common/MakeBase.gmk	Tue Mar 31 08:15:08 2020 +0100
+++ b/make/common/MakeBase.gmk	Thu Jan 30 11:08:30 2020 +0100
@@ -1036,15 +1036,16 @@
 # Param 2 - (optional) name of file to store value in
 DependOnVariableHelper = \
     $(strip \
-        $(eval -include $(call DependOnVariableFileName, $1, $2)) \
+        $(eval $1_filename := $(call DependOnVariableFileName, $1, $2)) \
+        $(if $(wildcard $($1_filename)), $(eval include $($1_filename))) \
         $(if $(call equals, $(strip $($1)), $(strip $($1_old))),,\
-          $(call MakeDir, $(dir $(call DependOnVariableFileName, $1, $2))) \
+          $(call MakeDir, $(dir $($1_filename))) \
           $(if $(findstring $(LOG_LEVEL), trace), \
               $(info NewVariable $1: >$(strip $($1))<) \
               $(info OldVariable $1: >$(strip $($1_old))<)) \
           $(call WriteFile, $1_old:=$(call DoubleDollar,$(call EscapeHash,$($1))), \
-              $(call DependOnVariableFileName, $1, $2))) \
-        $(call DependOnVariableFileName, $1, $2) \
+              $($1_filename))) \
+        $($1_filename) \
     )
 
 # Main macro