diff options
author | Vadim Konovalov <vkonovalov@lucent.com> | 2004-10-13 13:45:31 +0400 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2004-10-14 14:01:50 +0000 |
commit | 8bcd5811450ad13819564acc4bb15a205239031f (patch) | |
tree | 1ec5f2c8dceb0804d3792471b82975aad03261a2 /win32/buildext.pl | |
parent | 90f6ca78c85ab94ac108f3fd8202d56948c025be (diff) | |
download | perl-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.pl | 8 |
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; } |