Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load jawt library relative to sun.boot.library.path system on unix OSes #1422

Merged

Commits on Mar 14, 2022

  1. Load jawt library relative to sun.boot.library.path system on unix OSes

    At least Ubuntu builds the JDK with RUNPATH set instead of RPATH. The
    two differ in their effect on loading transitive dependencies.
    
    RPATHs effect also covers libraries loaded as transitive dependencies,
    while RUNPATH does not. In the case of JNA libjawt is loaded by
    libdispatch (the native JNA part), which makes it a transtive load.
    
    The solution is to load the library with the full path based on the
    sun.boot.library.path system property, which points to the native
    library dirs.
    matthiasblaesing committed Mar 14, 2022
    Copy the full SHA
    f57c650 View commit details
    Browse the repository at this point in the history