The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,860 other subscribers

compiling – Where do executables look for shared objects at runtime? – Unix & Linux Stack Exchange

Posted by jpluimers on 2019/04/30

Thanks Gilles for answering [WayBackcompiling – Where do executables look for shared objects at runtime? – Unix & Linux Stack Exchange.

Abstract:

In a nutshell, when it’s looking for a dynamic library (.so file) the linker tries:

  • directories listed in the LD_LIBRARY_PATH environment variable (DYLD_LIBRARY_PATH on OSX);
  • directories listed in the executable’s rpath;
  • directories on the system search path, which (on Linux at least) consists of the entries in /etc/ld.so.conf plus /lib and /usr/lib.

–jeroen

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.