OpenJDK build can't handle commas in LDFLAGS

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 8u92
    • Affects Version/s: 8u65
    • Component/s: 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.

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

                Created:
                Updated:
                Resolved: