diff options
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; } |