libwine: Use rpath-based install name and library references for libwine on Mac.

Ken Thomases ken at codeweavers.com
Sat Jan 12 05:31:49 CST 2013


On Jan 12, 2013, at 4:12 AM, Alexandre Julliard wrote:

> Ken Thomases <ken at codeweavers.com> writes:
> 
>> On Jan 11, 2013, at 11:13 AM, Alexandre Julliard wrote:
>>> It doesn't seem to work when installed:
>>> 
>>> wine: failed to initialize: dlopen(/usr/local/lib/wine/ntdll.dll.so, 258): image not found

>> I assume you did indeed build it with the prefix /usr/local and there is a /usr/local/lib/wine/ntdll.dll.so.  Is that right?
> 
> The prefix is /usr/local, but there are no files in there, I moved them
> somewhere else. That's the whole point, files are supposed to be found
> relative to the binary, not in the hardcoded prefix.

OK, but that still works for me.  I configured with --prefix=$HOME/test1, I installed there, and tested.  Then, I renamed ~/test1 to ~/test2 and retested and things still worked.

(I'll also point out that none of the Wine library references incorporate absolute paths any more with my change.  So, even working when installed in the configured prefix dir is an indication that it's successfully finding libwine relative to the binary.  It has no other way to find it.)

So, can you provide the output from those commands (as applied to the files wherever you've moved them)?

Thanks,
Ken




More information about the wine-devel mailing list