There is code for win32 that determines archlib from the location
of PERL.DLL. This is only 50% effective, as any sitelib at
the same location is not found.
This simple patch adds that feature. It is needed for the win32
binary distribution to work in a relocatable fashion.
[editor's note: perhaps only partially applied]
p5p-msgid:
199706231647.MAA23260@aatma.engin.umich.edu
s#/[ *\*]*\*/#/**/#;
if (/^\s*#define\s+ARCHLIB_EXP/)
{
- $_ = "#define ARCHLIB_EXP (win32PerlLibPath())\t/**/\n";
+ $_ = "#define ARCHLIB_EXP (win32PerlLibPath())\t/**/\n"
+ . "#define APPLLIB_EXP (win32SiteLibPath())\t/**/\n";
}
print H;
}
return (szPerlLibRoot);
}
+char *
+win32SiteLibPath(void)
+{
+ static char szPerlSiteLib[MAXPATH+1];
+ strcpy(szPerlSiteLib, win32PerlLibPath());
+ strcat(szPerlSiteLib, "\\site");
+ return (szPerlSiteLib);
+}
+
BOOL
HasRedirection(char *ptr)
{
unsigned int sleep(unsigned int);
char *win32PerlLibPath(void);
+char *win32SiteLibPath(void);
int mytimes(struct tms *timebuf);
unsigned int myalarm(unsigned int sec);
int do_aspawn(void* really, void** mark, void** arglast);