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

Missing `-ldl -lpthread` linker flag when linking Launcher after 8346669

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 25
    • infrastructure
    • None

      With https://github.com/openjdk/jdk/commit/46ba515c4989de7545d409570315274e0ea1c5ac , I noticed `-ldl -lpthread` are no longer included in the linker flags for building base_java_BUILD_LAUNCHER. That's due to the removal of `LIBS_linux := $(LIBDL) -lpthread, \` from make/common/modules/LauncherCommon.gmk.

      ```
      $ cat support_native_java.base_java_BUILD_LAUNCHER_java_run_ld.cmdline
      /.../jianglizhou/openjdk/local_fastdebug/cc_wrappers/cc_wrapper.sh -fuse-ld=lld -Wl,--exclude-libs,ALL -m64 -L/usr/local/google/home/jianglizhou/openjdk/local_fastdebug/build/support/modules_libs/java.base -Wl,-rpath,\$ORIGIN -Wl,--disable-new-dtags -Wl,-rpath,\$ORIGIN/../lib -Wl,--disable-new-dtags -o /usr/local/google/home/jianglizhou/openjdk/local_fastdebug/build/support/modules_cmds/java.base/java /usr/local/google/home/jianglizhou/openjdk/local_fastdebug/build/support/native/java.base/java/main.o -ljli
      ```

            ihse Magnus Ihse Bursie
            jiangli Jiangli Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: