diff options
Diffstat (limited to 'make_ext.pl')
-rw-r--r-- | make_ext.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/make_ext.pl b/make_ext.pl index 85bbacc514..507f04748c 100644 --- a/make_ext.pl +++ b/make_ext.pl @@ -215,6 +215,7 @@ sub build_extension { $perl ||= "$up/miniperl"; my $return_dir = $up; my $lib_dir = "$up/lib"; + $ENV{PERL5LIB} = $lib_dir; unless (chdir "$ext_dir") { warn "Cannot cd to $ext_dir: $!"; @@ -286,7 +287,7 @@ EOM @cross = '-MCross'; } - my @args = ("-I$lib_dir", @cross, 'Makefile.PL'); + my @args = (@cross, 'Makefile.PL'); if ($is_VMS) { my $libd = VMS::Filespec::vmspath($lib_dir); push @args, "INST_LIB=$libd", "INST_ARCHLIB=$libd"; |