[PATCH] Library Loading On Win32

0 views
Skip to first unread message

Jonathan Worthington

unread,
Jul 22, 2005, 11:58:17 AM7/22/05
to perl6-i...@perl.org
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/

win32libload.diff

Leopold Toetsch

unread,
Jul 23, 2005, 7:42:41 AM7/23/05
to Jonathan Worthington, perl6-i...@perl.org
Jonathan Worthington wrote:
> 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.
>

Thanks, applied - r8673
leo

Reply all
Reply to author
Forward
0 new messages