From: Daniel A. S. <st...@ic...> - 2002-02-26 05:16:14
|
At 9:47 -0800 on 25/2/02, Jim Ingham wrote: > > tests/load.test passes in the 3 branches and [load] now gives an >> error message when a file can't be found/loaded and also searches > > DYLD_LIBRARY_PATH. > >I saw this before, and added a LD_LIBRARY_PATH_VAR to the tcl.m4 which could >be set to DYLD_LIBRARY_PATH on X to get around this. Did you have to do >something else to work around this? the difference in behaviour is controlled by the NSADDIMAGE_OPTION_WITH_SEARCHING flag to NSAddImage. without it NSAddImage only tries to load the file it was given the path to, with it also searches through the standard dyld library directories & DYLD_LIBRARY_PATH etc: man NSModule: The other options of NSAddImage are as follows: NSADDIMAGE_OPTION_WITH_SEARCHING With this option the image_name passed for the library and all its dependents will be effected [sic] by the various DYLD environment variables as if this library were linked into the program. Cheers, Daniel -- ** Daniel A. Steffen ** "And now to something completely ** Department of Mathematics ** different" Monty Python ** Macquarie University ** <mailto:st...@ma...> ** NSW 2109 Australia ** <http://www.maths.mq.edu.au/~steffen/> |