[Mono-list] DllImport and modifying library search path

Robert Jordan robertj at gmx.net
Mon Feb 14 05:59:29 EST 2011

On 14.02.2011 08:15, Uli Hertlein wrote:
> But the basic issue is still stands: I can set the LD_LIBRARY_PATH to complete garbage from within
> Mono but dlopen (and hence DllImport?) just ignores it.  It's almost like the dlopen is executed
> from another process, and so doesn't pick up the changed environment variable.

dlopen() evaluates LD_LIBRARY_PATH only once at start-up.
This is by design.


More information about the Mono-list mailing list