Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8201221

JDK-8199608 introduced a build race on macosx

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1 P1
    • 11
    • 11
    • infrastructure
    • None
    • b09
    • os_x

      JDK-8199608 introduced a build race on macosx. The declaration:

      $(BUILD_LIBFONTMANAGER): $(BUILD_LIBAWT_LWAWT)

      does not work because the SetupNativeCompilation call for BUILD_LIBAWT_LWAWT is positioned further down in the file.

      I propose this simple patch:

      diff -r 149dc554808c make/lib/Awt2dLibraries.gmk
      --- a/make/lib/Awt2dLibraries.gmk
      +++ b/make/lib/Awt2dLibraries.gmk
      @@ -667,7 +667,7 @@
       endif
       
       ifeq ($(OPENJDK_TARGET_OS), macosx)
      - $(BUILD_LIBFONTMANAGER): $(BUILD_LIBAWT_LWAWT)
      + $(BUILD_LIBFONTMANAGER): $(call FindLib, java.desktop, awt_lwawt)
       endif
       
       ifeq ($(FREETYPE_TO_USE), bundled)

            erikj Erik Joelsson
            erikj Erik Joelsson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: