Release Note: Native Executables and Libraries on Linux Use `RPATH` Instead of `RUNPATH`

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Delivered
    • Priority: P4
    • 23
    • Affects Version/s: 8u421, 11.0.24-oracle, 17.0.12-oracle, 21.0.4-oracle, 22.0.2, 23
    • Component/s: infrastructure

        Native executables and libraries on Linux have switched to using `RPATH` instead of `RUNPATH` in this release.

        JDK native executables and libraries use embedded runtime search paths to locate other internal JDK native libraries. On Linux these can be defined as either `RPATH` or `RUNPATH`. The main difference is that the dynamic linker considers `RPATH` before the `LD_LIBRARY_PATH` environment variable, while `RUNPATH` is only considered after `LD_LIBRARY_PATH`.

        By making the change to using `RPATH`, it is no longer possible to replace JDK internal native libraries using `LD_LIBRARY_PATH`.

              Assignee:
              Erik Joelsson
              Reporter:
              Erik Joelsson
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: