Tried it. It didn't appear to work, although it may have been something
silly I did. Basically, I did a:

setenv("LD_LIBRARY_PATH",".",1);

I was hoping to get the loader to use the current directory to find
libraries, so a later call to:

dlopen("foo.so",RTLD_NOW | RTLD_GLOBAL);

would find foo.so in the current directory.

        -Brian

 > Brian McGovern <[EMAIL PROTECTED]> types:
 > > Therefore, is there a way to change the linker behavior once the applicati
on
 > > has started?... Namely, the equivelent of setting LD_LIBRARY_PATH _after_ 
the
 > > application has loaded all of the initial libraries and started running, b
ut
 > > before I get around to calling my loader?
 > 
 > This may be a stupid suggestion, but I've never tried such a thing.  I
 > do wonder about it myself and you can test it easier than I can.
 > 
 > What happens if just use the setenv(3) call to change the environment?
 > Does that work, or is it to late for the environment to have an
 > effect?
 > 
 >      <mike
 > --
 > Mike Meyer <[EMAIL PROTECTED]>                   http://www.mired.org/home/mwm/
 > Independent WWW/Unix/FreeBSD consultant,     email for more information.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to