| 1 |
diff -up perl-5.10.0/perl.c.BAD perl-5.10.0/perl.c
|
| 2 |
--- perl-5.10.0/perl.c.BAD 2009-03-09 09:55:05.000000000 -0400
|
| 3 |
+++ perl-5.10.0/perl.c 2009-03-09 10:00:41.000000000 -0400
|
| 4 |
@@ -4753,9 +4753,6 @@ S_init_perllib(pTHX)
|
| 5 |
incpush(APPLLIB_EXP, TRUE, TRUE, TRUE, TRUE);
|
| 6 |
#endif
|
| 7 |
|
| 8 |
-#ifdef ARCHLIB_EXP
|
| 9 |
- incpush(ARCHLIB_EXP, FALSE, FALSE, TRUE, TRUE);
|
| 10 |
-#endif
|
| 11 |
#ifdef MACOS_TRADITIONAL
|
| 12 |
{
|
| 13 |
Stat_t tmpstatbuf;
|
| 14 |
@@ -4764,6 +4761,10 @@ S_init_perllib(pTHX)
|
| 15 |
|
| 16 |
if (!macperl)
|
| 17 |
macperl = "";
|
| 18 |
+
|
| 19 |
+#ifdef ARCHLIB_EXP
|
| 20 |
+ incpush(ARCHLIB_EXP, FALSE, FALSE, TRUE, TRUE);
|
| 21 |
+#endif
|
| 22 |
|
| 23 |
Perl_sv_setpvf(aTHX_ privdir, "%slib:", macperl);
|
| 24 |
if (PerlLIO_stat(SvPVX(privdir), &tmpstatbuf) >= 0 && S_ISDIR(tmpstatbuf.st_mode))
|
| 25 |
@@ -4777,14 +4778,6 @@ S_init_perllib(pTHX)
|
| 26 |
if (!PL_tainting)
|
| 27 |
incpush(":", FALSE, FALSE, TRUE, FALSE);
|
| 28 |
#else
|
| 29 |
-#ifndef PRIVLIB_EXP
|
| 30 |
-# define PRIVLIB_EXP "/usr/local/lib/perl5:/usr/local/lib/perl"
|
| 31 |
-#endif
|
| 32 |
-#if defined(WIN32)
|
| 33 |
- incpush(PRIVLIB_EXP, TRUE, FALSE, TRUE, TRUE);
|
| 34 |
-#else
|
| 35 |
- incpush(PRIVLIB_EXP, FALSE, FALSE, TRUE, TRUE);
|
| 36 |
-#endif
|
| 37 |
|
| 38 |
#ifdef SITEARCH_EXP
|
| 39 |
/* sitearch is always relative to sitelib on Windows for
|
| 40 |
@@ -4828,6 +4821,19 @@ S_init_perllib(pTHX)
|
| 41 |
incpush(PERL_VENDORLIB_STEM, FALSE, TRUE, TRUE, TRUE);
|
| 42 |
#endif
|
| 43 |
|
| 44 |
+#ifdef ARCHLIB_EXP
|
| 45 |
+ incpush(ARCHLIB_EXP, FALSE, FALSE, TRUE, TRUE);
|
| 46 |
+#endif
|
| 47 |
+
|
| 48 |
+#ifndef PRIVLIB_EXP
|
| 49 |
+# define PRIVLIB_EXP "/usr/local/lib/perl5:/usr/local/lib/perl"
|
| 50 |
+#endif
|
| 51 |
+#if defined(WIN32)
|
| 52 |
+ incpush(PRIVLIB_EXP, TRUE, FALSE, TRUE, TRUE);
|
| 53 |
+#else
|
| 54 |
+ incpush(PRIVLIB_EXP, FALSE, FALSE, TRUE, TRUE);
|
| 55 |
+#endif
|
| 56 |
+
|
| 57 |
#ifdef PERL_OTHERLIBDIRS
|
| 58 |
incpush(PERL_OTHERLIBDIRS, TRUE, TRUE, TRUE, TRUE);
|
| 59 |
#endif
|