This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Bump Data::Dumper version
[perl5.git] / win32 / list_static_libs.pl
CommitLineData
c6d234b8
NC
1#!perl -w
2use strict;
3
4# prints libraries for static linking and exits
5
6use Config;
7
8my @statics = split /\s+/, $Config{static_ext};
9
122ce0a1 10my (@extralibs, %extralibs); # collect extralibs, preserving their order
c6d234b8
NC
11for (@statics) {
12 my $file = "..\\lib\\auto\\$_\\extralibs.ld";
13 open my $fh, '<', $file or die "can't open $file for reading: $!";
122ce0a1 14 push @extralibs, grep {!$extralibs{$_}++} grep {/\S/} split /\s+/, join '', <$fh>;
c6d234b8
NC
15}
16print map {s|/|\\|g;m|([^\\]+)$|;"..\\lib\\auto\\$_\\$1$Config{_a} "} @statics;
122ce0a1 17print map {"$_ "} @extralibs;