[Tutor] Set LD_LIBRARY_PATH and equivalents platform-independently

eryksun eryksun at gmail.com
Thu Jan 17 15:21:35 CET 2013


On Wed, Jan 16, 2013 at 4:06 PM, Albert-Jan Roskam <fomcl at yahoo.com> wrote:
>
> Is there a builtin function that can set LD_LIBRARY_PATH or equivalents
> platform-independently? It would be nice use such a function in a setup
> script.

Modifying LD_LIBRARY_PATH only affects child processes (ld.so caches
the search path). In contrast, Windows evaluates the current PATH when
searching for DLLs (other than SxS assemblies). What's the immediate
goal here? For building an extension module with distutils you can use
library_dirs and runtime_library_dirs (UNIX, embed an rpath).


More information about the Tutor mailing list