summaryrefslogtreecommitdiff
path: root/build-support/java9-openjdk/jdk9u-jdk-9.0.4+12-make43.patch
blob: b84406344b0b5fef50171f4b0db30ca689a3e202 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff -rauN jdk9u-jdk-9.0.4+12/make/common/MakeBase.gmk jdk9u-jdk-9.0.4+12-make43-patch/make/common/MakeBase.gmk
--- jdk9u-jdk-9.0.4+12/make/common/MakeBase.gmk	2017-12-20 00:25:20.000000000 +0100
+++ jdk9u-jdk-9.0.4+12-make43-patch/make/common/MakeBase.gmk	2021-05-16 08:48:07.503289305 +0200
@@ -897,15 +897,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