<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>There are already many Linux distributions that are following the multiarch-spec[1] and adding the following paths to the default library path list:</div><div><ul><li>/usr/local/lib/<triplet></li><li>/lib/<triplet></li><li>/usr/lib/<triplet></li></ul><div>But OpenJDK doesn't add these paths to the java.library.path by default, so System.loadLibrary(String) has annoying behavior differences with ld.<br></div><div>Many libraries already installed on the system cannot be found by System.loadLibrary(String).<br></div><div><br></div><div>I wish OpenJDK would parse the /etc/ld.so.conf to get the full library path list so it would be consistent with the behavior of ld.<br></div><div>Can anyone consider this suggestion?</div><div><br></div><div>Glavo</div></div><div><br></div><div>[1]: <a href="https://wiki.ubuntu.com/MultiarchSpec">https://wiki.ubuntu.com/MultiarchSpec</a></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>