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

[macos] jpackageapplauncher/main.m built using CXXFLAGS_JDKEXE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b17
    • OS:
      os_x

      Description

      The jpackage build support in Lib-jdk.incubator.jpackage.gmk sets the CFLAGS for building the applauncher to CXXFLAGS_JDKEXE, so using options for compiling C++ code. However, the MacOSX applauncher is written in Objective-C, which may lead to rejection of C++ options. In particular, if the -std= option is present it will be rejected and the build will fail.

      The -std= option ought to be specified for all C++ processing (both compiling and linking), to avoid potential inconsistencies. The use of CXXFLAGS_JDKEXE when compiling Objective-C code prevents fixing some places where the -std= option is missing.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              herrick Andy Herrick
              Reporter:
              kbarrett Kim Barrett
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: