diff options
author | Nicholas Clark <nick@ccl4.org> | 2009-09-23 10:42:00 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2009-09-23 10:42:00 +0100 |
commit | b0e687f777617f7ff223559dbda04c4f53864b19 (patch) | |
tree | ba4e1fde669c57929bc07352ab1c5c4d8e0c9eac /perl.c | |
parent | 3267aef691333a85988941dbf9b86e331ecde4f3 (diff) | |
download | perl-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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |