summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-09-23 10:42:00 +0100
committerNicholas Clark <nick@ccl4.org>2009-09-23 10:42:00 +0100
commitb0e687f777617f7ff223559dbda04c4f53864b19 (patch)
treeba4e1fde669c57929bc07352ab1c5c4d8e0c9eac /perl.c
parent3267aef691333a85988941dbf9b86e331ecde4f3 (diff)
downloadperl-b0e687f777617f7ff223559dbda04c4f53864b19.tar.gz
Restrict miniperl to just -I..., the split of $ENV{PERL5LIB}, and "." in @INC
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl.c b/perl.c
index 22c18ebde7..8691a15645 100644
--- a/perl.c
+++ b/perl.c
@@ -4058,6 +4058,10 @@ S_init_perllib(pTHX)
#endif /* VMS */
}
+#ifndef PERL_IS_MINIPERL
+ /* miniperl gets just -I..., the split of $ENV{PERL5LIB}, and "." in @INC
+ (and not the architecture specific directories from $ENV{PERL5LIB}) */
+
/* Use the ~-expanded versions of APPLLIB (undocumented),
ARCHLIB PRIVLIB SITEARCH SITELIB VENDORARCH and VENDORLIB
*/
@@ -4188,6 +4192,7 @@ S_init_perllib(pTHX)
INCPUSH_ADD_OLD_VERS|INCPUSH_ADD_ARCHONLY_SUB_DIRS
|INCPUSH_CAN_RELOCATE);
#endif
+#endif /* !PERL_IS_MINIPERL */
if (!PL_tainting)
S_incpush(aTHX_ STR_WITH_LEN("."), 0);