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

OpenJDK build can't handle commas in LDFLAGS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u92
    • 8u65
    • infrastructure
    • None
    • b03

        If additional LDFLAGS containing commas are passed to the build e.g.

        --with-extra-ldflags="-Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common"

        (which are the default flags on Fedora), then the build will fail as the call to SetupNativeCompilation expands LDFLAGS_JDKLIB early and the commas are interpreted to denote separate arguments to this macro.

        On 8, this only affects the demo code (BUILD_DEMO_JVMTI_$1). It also affected the main JDK build on 9 until 8142907 which fixed both cases there. For 8, we should backport the relevant part of 8142907 under this bug.

              andrew Andrew Hughes
              andrew Andrew Hughes
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: