new problem: libjava.dylib: image not found -- but it is there

John Rose John.Rose at Sun.COM
Wed Jan 27 14:24:04 PST 2010


On Jan 27, 2010, at 2:03 PM, Greg Lewis wrote:

>> The $ORIGIN hack seems like the sort of thing which Mac OS X would do
>> better; does anyone know the Mac or BSD story here?
>> 
>> The original version of the BSD file omits mention of LD_RUNPATH_EXTRAS,
>> while the original version of linux and solaris files has it, so it's
>> hard to tell who to ask about the change.
> 
> I seem to recall leaving this out because the MacOS X linker didn't
> understand these flags.  At that point things were working without them
> so I didn't want to spend the time investigating further to see if there
> were equivalent flags.  Sorry.

No problem; it's clearly just part of the porting process.

A comment left behind might have saved a little time (but only a little).

Thanks for the clarification, and thanks Mike S. for the pointers to linker docs.

-- John

P.S.  As I googled around for info on Mac linking, I also found these pages helpful:
  http://www.codeshorts.ca/2007/nov/01/leopard-linking-making-relocatable-libraries-movin
  http://code.google.com/p/sidelight/wiki/RpathSaver
  https://wiki.ucar.edu/display/dasg/Building+with+shared+libs
  http://www.cocoadev.com/index.pl?ApplicationLinking




More information about the bsd-port-dev mailing list