summaryrefslogtreecommitdiff
path: root/make_ext.pl
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-09-08 09:46:45 +0100
committerNicholas Clark <nick@ccl4.org>2009-09-08 09:46:45 +0100
commita34ce875bf70f00f7af4a549f8c1ff0f4469f7fb (patch)
treefd89baa5a154b634e70b6b45710ac53eeeb95a1c /make_ext.pl
parentd1ce36d727ed53b12332c6ef40743b21335b21a1 (diff)
downloadperl-a34ce875bf70f00f7af4a549f8c1ff0f4469f7fb.tar.gz
On Win32 and VMS, split building dynamic and nonxs extensions into two targets.
Diffstat (limited to 'make_ext.pl')
-rw-r--r--make_ext.pl11
1 files changed, 7 insertions, 4 deletions
diff --git a/make_ext.pl b/make_ext.pl
index cfc12c2971..b544830243 100644
--- a/make_ext.pl
+++ b/make_ext.pl
@@ -16,7 +16,8 @@ use Cwd;
#
# On Windows or VMS,
# If '--static' is specified, static extensions will be built.
-# If '--dynamic' is specified, dynamic (and nonxs) extensions will be built.
+# If '--dynamic' is specified, dynamic extensions will be built.
+# If '--nonxs' is specified, nonxs extensions will be built.
# If '--all' is specified, all extensions will be built.
#
# make_ext.pl "MAKE=make [-make_opts]" --dir=directory [--target=target] [--static|--dynamic|--all] +ext2 !ext1
@@ -67,6 +68,7 @@ foreach (@ARGV) {
my $static = $opts{static} || $opts{all};
my $dynamic = $opts{dynamic} || $opts{all};
+my $nonxs = $opts{nonxs} || $opts{all};
# The Perl Makefile.SH will expand all extensions to
# lib/auto/X/X.a (or lib/auto/X/Y/Y.a if nested)
@@ -126,7 +128,7 @@ if ($target eq '') {
die "$0: unknown make target '$target'\n";
}
-if (!@extspec and !$static and !$dynamic) {
+if (!@extspec and !$static and !$dynamic and !$nonxs) {
die "$0: no extension specified\n";
}
@@ -157,7 +159,8 @@ if ($is_Win32) {
my @ext;
push @ext, FindExt::static_ext() if $static;
- push @ext, FindExt::dynamic_ext(), FindExt::nonxs_ext() if $dynamic;
+ push @ext, FindExt::dynamic_ext() if $dynamic;
+ push @ext, FindExt::nonxs_ext() if $nonxs;
foreach (sort @ext) {
if (%incl and !exists $incl{$_}) {
@@ -179,7 +182,7 @@ elsif ($is_VMS) {
$perl = $^X;
push @extspec, (split ' ', $Config{static_ext}) if $static;
push @extspec, (split ' ', $Config{dynamic_ext}) if $dynamic;
- push @extspec, (split ' ', $Config{nonxs_ext}) if $dynamic;
+ push @extspec, (split ' ', $Config{nonxs_ext}) if $nonxs;
}
foreach my $spec (@extspec) {