diff options
author | Nicholas Clark <nick@ccl4.org> | 2009-09-07 15:48:18 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2009-09-07 16:29:13 +0100 |
commit | 73402eba5d70043b96ba0e48baa0b161e86c8605 (patch) | |
tree | 19ad0e4824008b3308ff4012fd8e9bb6d9d8c1a9 /make_ext.pl | |
parent | 47fe32517be8721f2476eeb9a015710befed8b38 (diff) | |
download | perl-73402eba5d70043b96ba0e48baa0b161e86c8605.tar.gz |
Use $ENV{PERL_LIB} rather than an -I argument to pass in the library location.
(This will scale to multiple library locations, and to subprocess perls, which
is necessary if we want to move build-time dual-life modules from lib to
ext/...)
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"; |