Hi,

Under Win32 it's common to install stuff...well...anywhere the person installing it wants. With this patch, we can create binary distributions for Win32 that don't need Parrot to be installed in the place that "make install" decides to put it.

Normally libraries are loaded by appending a prefix, stashed in the executable at compile time, to some common library search paths. With this patch, if that doesn't work out for us then and we're on Win32 then we get the path of the Parrot executable and use that as a basis for trying to find libraries.

Thanks to Amir Karger for reporting this problem in my regular Parrot Win32 snapshots[1].

Also, note to leo (and anyone else who was on IRC while I was having a dumb moment) - this patch doesn't depend on that memory freeing one I submitted a day or so back being applied first. I thought it touched library.c. It didn't. So this can be applied whenever, provided there's no complaints about it.

Thanks,

Jonathan

[1] http://www.jwcs.net/~jonathan/perl6/

Attachment: win32libload.diff
Description: Binary data

Reply via email to