<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On Jan 30, 2007, at 1:37 AM, Hans Oesterholt-Dijkema wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">There must be something like ldconfig (like linux uses)</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">for MacOS X. Otherwise, the OS itself would have to hardwire</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">stuff and if I remember well, MacOSX is a derivative of</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">(free)bsd?</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">If there's an ldconfig, there must also be some /etc/ldconfig.*</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">file.</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Maybe a MacOSX developer can help?</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">--Hans</FONT></P> </BLOCKQUOTE><BR><BR></DIV><DIV>There is no configuration file. The salient section of the man page for dlopen is</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>SEARCHING</DIV><DIV> dlopen() uses a series of steps to find a compatible mach-o file. The</DIV><DIV> first compatible file found is used.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV> 1) If the directory specified by path does not contain a slash '/' (i.e.</DIV><DIV> it is a leaf name) then the environment variable LD_LIBRARY_PATH is used.</DIV><DIV> LD_LIBRARY_PATH should be a colon seperated list of directories.</DIV><DIV> dlopen() searches each directory, in the order specified, for the leaf</DIV><DIV> name path.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV> 2) If DYLD_LIBRARY_PATH is set, then those directories are searched, in</DIV><DIV> order, with the leaf name of path.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV> 3) If DYLD_FALLBACK_LIBRARY_PATH is set, then those directories are</DIV><DIV> searched, in order with the leaf name of path. If DYLD_FALL-</DIV><DIV> BACK_LIBRARY_PATH is not set, then the following directories are</DIV><DIV> searched: $HOME/lib, /usr/local/lib, /usr/lib</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV> 4) Lastly, path is tried as-is as a regular file path. That means it</DIV><DIV> might resolve relative to the current working directory.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV> Note: There are no configuration files to control dlopen searching.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV> Note: Mac OS X uses "fat" files to combine 32-bit and 64-bit libraries.</DIV><DIV> This means there are no separate 32-bit and 64-bit search paths.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>The details on libraries and frameworks are in dyld(3), but I think you want to follow the above rules.</DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>Gregory Woodhouse</DIV><DIV><A href="mailto:gregory.woodhouse@sbcglobal.net">gregory.woodhouse@sbcglobal.net</A></DIV><DIV><BR class="khtml-block-placeholder"></DIV>"If everything seems under control,<BR class="Apple-interchange-newline"></SPAN><DIV>you're just not going fast enough."</DIV><DIV>-- Mario Andretti</DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></BODY></HTML>