8205616: Build fails with system headers after 8204572

Co-authored-by: Fridrich Strba <fridrich.strba@suse.com>
Reviewed-by: erikj
This commit is contained in:
Magnuse Ihse Bursie 2018-06-27 21:56:11 +02:00 committed by John Paul Adrian Glaubitz
parent ed19b48e71
commit 63881a7602

View File

@ -119,9 +119,11 @@ define SetupJdkLibraryBody
endif
ifneq ($$($1_HEADERS_FROM_SRC), false)
$1_SRC_HEADER_FLAGS := $$(foreach dir, $$(wildcard $$($1_SRC) \
$$(call GetJavaHeaderDir, $$(MODULE))), -I$$(dir))
$1_SRC_HEADER_FLAGS := $$(addprefix -I, $$(wildcard $$($1_SRC)))
endif
# Always add the java header dir
$1_SRC_HEADER_FLAGS += $$(addprefix -I, $$(call GetJavaHeaderDir, $$(MODULE)))
ifneq ($$($1_EXTRA_HEADER_DIRS), )
$1_PROCESSED_EXTRA_HEADER_DIRS := $$(foreach dir, $$($1_EXTRA_HEADER_DIRS), \
$$(call ProcessDir, $$(dir)))