summaryrefslogtreecommitdiff
path: root/make_ext.pl
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-09-25 11:56:04 +0100
committerNicholas Clark <nick@ccl4.org>2009-09-25 11:56:04 +0100
commit321c358920f04a77dd5318e7d76f9526d684fd5c (patch)
tree9381b458db077ae668bed241518b4c77403e5fdb /make_ext.pl
parenta32b3e139d3c4089c63b2af5abf995d1c2dec954 (diff)
downloadperl-321c358920f04a77dd5318e7d76f9526d684fd5c.tar.gz
Support building nonxs extensions from cpan/ on Unix.
Diffstat (limited to 'make_ext.pl')
-rw-r--r--make_ext.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/make_ext.pl b/make_ext.pl
index 17f1227289..bcddb90659 100644
--- a/make_ext.pl
+++ b/make_ext.pl
@@ -20,6 +20,7 @@ my @toolchain = qw(ext/constant/lib ext/Cwd ext/Cwd/lib ext/ExtUtils-Command/lib
ext/File-Path/lib ext/AutoLoader/lib);
my @ext_dirs = qw(ext cpan);
+my $ext_dirs_re = '(?:' . join('|', @ext_dirs) . ')';
# This script acts as a simple interface for building extensions.
@@ -100,7 +101,7 @@ foreach (@extspec) {
if (s{^lib/auto/}{}) {
# Remove lib/auto prefix and /*.* suffix
s{/[^/]+\.[^/]+$}{};
- } elsif (s{^ext/}{}) {
+ } elsif (s{^$ext_dirs_re/}{}) {
# Remove ext/ prefix and /pm_to_blib suffix
s{/pm_to_blib$}{};
# Targets are given as files on disk, but the extension spec is still