8192876: MacOS build fails intermittently after JDK-8139653
authorerikj
Fri, 01 Dec 2017 09:46:36 -0800
changeset 48040 26f1193f1348
parent 48039 a9160acae595
child 48041 2743e489189e
8192876: MacOS build fails intermittently after JDK-8139653 Reviewed-by: tbell
make/lib/Awt2dLibraries.gmk
--- a/make/lib/Awt2dLibraries.gmk	Fri Dec 01 17:00:34 2017 +0100
+++ b/make/lib/Awt2dLibraries.gmk	Fri Dec 01 09:46:36 2017 -0800
@@ -702,12 +702,6 @@
     OBJECT_DIR := $(SUPPORT_OUTPUTDIR)/native/$(MODULE)/libfontmanager, \
 ))
 
-$(BUILD_LIBFONTMANAGER): $(BUILD_LIBAWT)
-
-ifneq (, $(findstring $(OPENJDK_TARGET_OS), solaris aix))
-  $(BUILD_LIBFONTMANAGER): $(BUILD_LIBAWT_HEADLESS)
-endif
-
 $(INSTALL_LIBRARIES_HERE)/$(call SHARED_LIBRARY,fontmanager): $(BUILD_LIBFONTMANAGER_TARGET)
 	$(install-file)
         ifneq ($(FREETYPE_BUNDLE_LIB_PATH), )
@@ -721,7 +715,15 @@
           endif
         endif
 
-TARGETS += $(INSTALL_LIBRARIES_HERE)/$(call SHARED_LIBRARY,fontmanager)
+BUILD_LIBFONTMANAGER += $(INSTALL_LIBRARIES_HERE)/$(call SHARED_LIBRARY,fontmanager)
+
+$(BUILD_LIBFONTMANAGER): $(BUILD_LIBAWT)
+
+ifneq (, $(findstring $(OPENJDK_TARGET_OS), solaris aix))
+  $(BUILD_LIBFONTMANAGER): $(BUILD_LIBAWT_HEADLESS)
+endif
+
+TARGETS += $(BUILD_LIBFONTMANAGER)
 
 ################################################################################