summaryrefslogtreecommitdiff
path: root/win32/buildext.pl
diff options
context:
space:
mode:
authorVadim Konovalov <vkonovalov@lucent.com>2004-10-13 13:45:31 +0400
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-10-14 14:01:50 +0000
commit8bcd5811450ad13819564acc4bb15a205239031f (patch)
tree1ec5f2c8dceb0804d3792471b82975aad03261a2 /win32/buildext.pl
parent90f6ca78c85ab94ac108f3fd8202d56948c025be (diff)
downloadperl-8bcd5811450ad13819564acc4bb15a205239031f.tar.gz
RE: [PATCH-for-23358] enable statically linked exte nsions for Win32
From: "Konovalov, Vadim" <vkonovalov@spb.lucent.com> Message-ID: <7DD1BE2C50259746ABB8683672D2089E08133C@itotest-1.spb.lucent.com> p4raw-id: //depot/perl@23363
Diffstat (limited to 'win32/buildext.pl')
-rw-r--r--win32/buildext.pl8
1 files changed, 7 insertions, 1 deletions
diff --git a/win32/buildext.pl b/win32/buildext.pl
index 50fe4c1d97..0ae9f74173 100644
--- a/win32/buildext.pl
+++ b/win32/buildext.pl
@@ -60,7 +60,13 @@ if ($opts{'list-static-libs'} || $opts{'create-perllibst-h'}) {
print $fh "#ifdef STATIC3\n",(map {" newXS(\"$statics2[$_]::bootstrap\", boot_$statics1[$_], file);\n"} 0 .. $#statics),"#undef STATIC3\n#endif\n";
}
else {
- print map {/([^\/]+)$/;"$_/$1.lib "} @statics;
+ my %extralibs;
+ for (@statics) {
+ open my $fh, "<..\\lib\\auto\\$_\\extralibs.ld" or die "can't open <..\\lib\\auto\\$_\\extralibs.ld: $!";
+ $extralibs{$_}++ for grep {/\S/} split /\s+/, join '', <$fh>;
+ }
+ print map {/([^\/]+)$/;"..\\lib\\auto\\$_/$1.lib "} @statics;
+ print map {"$_ "} sort keys %extralibs;
}
exit;
}