[Pythonmac-SIG] -R, -L, ldd, and the meaning of life...
Skip Montanaro
skip@pobox.com
Thu, 10 Oct 2002 15:12:08 -0500
>> In much of the Unixoid world, link editors understand a -R flag
>> and/or an LD_RUN_PATH environment variable (or something similar).
>> One or the other tell the run-time linker to search the argument
>> director(y|ies) for shared libraries.
Jack> You don't normally need it for MacOSX.... See "man dyld" for the
Jack> gory details. So, -L is usually enough, but you have to be careful
Jack> with relative pathnames to -L as these'll be recorded as relative
Jack> pathnames in the resulting binary. Sometimes this is what you
Jack> want, often it isn't.
>> Also, is there a MacOSX equivalent of the ldd command?
Jack> otool will tell you pretty much anything you want to know.
Thanks to Jack and several others who replied privately with the sought
after information. I will be careful about the relative paths.
Skip