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

libjsig.so not linked with extra linker flags from configure

    XMLWordPrintable

Details

    • master
    • linux

    Backports

      Description

        When building JDK 10 with extra link flags like so:

        $ configure --with-extra-ldflags="...."

        The extra link flags are not being passed to the command when libjsig.so is being linked.

        Example:
        $ configure --with-extra-ldflags="-Xlinker -z -Xlinker defs"

        Then in build.log I see this:

        [...]
        Linking libjsig.so
        ( /usr/bin/gcc -Wl,--hash-style=both -Wl,-z,noexecstack -shared -m64 -o /disk/openjdk/upstream-sources/openjdk-10u/build/linux-x86_64-normal-server-release/support/modules_libs/java.base/libjsig.so /disk/openjdk/upstream-sources/openjdk-10u/build/linux-x86_64-normal-server-release/hotspot/libjsig/objs/jsig.o -ldl
        [...]

        Note that no "-Xlinker -z -Xlinker defs" flags are being passed.

        This is not reproducible on JDK 11.

        Attachments

          Issue Links

            Activity

              People

                sgehwolf Severin Gehwolf
                sgehwolf Severin Gehwolf
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: