summaryrefslogtreecommitdiff
path: root/write_buildcustomize.pl
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2011-12-02 21:30:30 -0600
committerCraig A. Berry <craigberry@mac.com>2011-12-02 21:30:30 -0600
commitf61462d5a2594a36d2e1822eb837033198461b8b (patch)
tree852bd47938522daba525d6bc37fa04c31f28b5c1 /write_buildcustomize.pl
parent1a34b28b1ed3a7c3a6b92fad22f321ae7c49f0e7 (diff)
downloadperl-f61462d5a2594a36d2e1822eb837033198461b8b.tar.gz
Add Term::ReadLine to write_buildcustomize.pl.
If the build fails while building extensions, it's nice to have the debugger available to help figure out what went wrong. You couldn't do that before because lib/perl5db.pl depends on Term::ReadLine, which wouldn't be available since it hadn't been built yet. This commit makes Term::ReadLine available via the same mechanism that makes other libraries available to miniperl during the build. An alternative would be to remove the debugger's dependency on Term::ReadLine, but that would be more work and more risk for a situation that hopefully doesn't come up that often.
Diffstat (limited to 'write_buildcustomize.pl')
-rw-r--r--write_buildcustomize.pl3
1 files changed, 3 insertions, 0 deletions
diff --git a/write_buildcustomize.pl b/write_buildcustomize.pl
index ee3eea572d..3d773a5a31 100644
--- a/write_buildcustomize.pl
+++ b/write_buildcustomize.pl
@@ -16,6 +16,8 @@ require File::Spec::Functions;
# needed to build the nonxs modules
# After which, all nonxs modules are in lib, which was always sufficient to
# allow miniperl to build everything else.
+# Term::ReadLine is not here for building but for allowing the debugger to
+# run under miniperl when nothing but miniperl will build :-(.
my @toolchain = qw(cpan/AutoLoader/lib
dist/Carp/lib
@@ -26,6 +28,7 @@ my @toolchain = qw(cpan/AutoLoader/lib
dist/ExtUtils-Manifest/lib
cpan/File-Path/lib
ext/re
+ dist/Term-ReadLine/lib
);
# Used only in ExtUtils::Liblist::Kid::_win32_ext()