|
1 | 1 | #
|
2 |
| -# Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved. |
| 2 | +# Copyright (c) 2018, 2025, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
4 | 4 | #
|
5 | 5 | # This code is free software; you can redistribute it and/or modify it
|
@@ -266,6 +266,9 @@ JDK_RCFLAGS=$(RCFLAGS) \
|
266 | 266 | # will be replaced with proper values for hotspot.
|
267 | 267 | # HEADERS_FROM_SRC -- if false, does not add source dirs automatically as
|
268 | 268 | # header include dirs. (Defaults to true.)
|
| 269 | +# JAVA_HEADERS -- if false, does not add the directory with the generated |
| 270 | +# headers from the Java compilation of the current module to the search |
| 271 | +# path for include files. (Defaults to true.) |
269 | 272 | # JDK_LIBS -- libraries generated by the JDK build system to link against.
|
270 | 273 | # These take the form <module>:<basename>. For the current module, the
|
271 | 274 | # module name and colon can be omitted. The basename should be specified
|
@@ -385,7 +388,9 @@ define SetupJdkNativeCompilationBody
|
385 | 388 |
|
386 | 389 | # Add the module specific java header dir
|
387 | 390 | ifneq ($$(MODULE), )
|
388 |
| - $1_SRC_HEADER_FLAGS += $$(addprefix -I, $$(call GetJavaHeaderDir, $$(MODULE))) |
| 391 | + ifneq ($$($1_JAVA_HEADERS), false) |
| 392 | + $1_SRC_HEADER_FLAGS += $$(addprefix -I, $$(call GetJavaHeaderDir, $$(MODULE))) |
| 393 | + endif |
389 | 394 | endif
|
390 | 395 |
|
391 | 396 | $1_JDK_LIBS += $$($1_JDK_LIBS_$$(OPENJDK_TARGET_OS))
|
|
0 commit comments