diff options
author | Nicholas Clark <nick@ccl4.org> | 2009-09-08 21:56:38 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2009-09-09 08:53:48 +0100 |
commit | f345288bed836e76c48c201640d2a1178d3f443d (patch) | |
tree | 60afd3179b85c857ef51e3b5a2cc6514495824e4 /make_ext.pl | |
parent | 178e6016122becf7dc83010b66685f27ec4adbb9 (diff) | |
download | perl-f345288bed836e76c48c201640d2a1178d3f443d.tar.gz |
Move constant from lib/ to ext/
This is the first step in moving dual-life toolchain modules into ext.
Diffstat (limited to 'make_ext.pl')
-rw-r--r-- | make_ext.pl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/make_ext.pl b/make_ext.pl index b544830243..691f7b14b9 100644 --- a/make_ext.pl +++ b/make_ext.pl @@ -4,6 +4,8 @@ use warnings; use Config; use Cwd; +my @toolchain = qw(ext/constant/lib); + # This script acts as a simple interface for building extensions. # It's actually a cut and shut of the Unix version ext/utils/makeext and the @@ -219,7 +221,8 @@ sub build_extension { $perl ||= "$up/miniperl"; my $return_dir = $up; my $lib_dir = "$up/lib"; - $ENV{PERL5LIB} = $lib_dir; + $ENV{PERL5LIB} + = join $Config{path_sep}, $lib_dir, map {"$up/$_"} @toolchain; unless (chdir "$ext_dir") { warn "Cannot cd to $ext_dir: $!"; |