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

Change use of escaped quotes in Makefiles, -Dx=\"abc\" to -Dx='"abc"'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7
    • 7
    • infrastructure
    • b101
    • generic
    • generic

      Use of GNU make 3.81 with MKS on windows has an issue with command lines that escape double quotes, patterns like

         -DARCH=\"$(ARCH)\"

      need to change to:

         -DARCH='"$(ARCH)"'

      As long as the contents inside the '' characters is expanded by the GNU make tool and not shell expansions. Normally text inside '' characters in shells will not expand variables.

      This problem is unique to GNU make when used with MKS and only on windows. Use of MKS provides a build time improvement and is still used in the Release Engineering process and some of the automated build systems instead of CYGWIN make (which does not have a problem here).

            ohair Kelly Ohair (Inactive)
            ohair Kelly Ohair (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: