summaryrefslogtreecommitdiff
path: root/Porting
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2012-04-09 09:14:21 +0200
committerNicholas Clark <nick@ccl4.org>2013-05-28 09:19:27 +0200
commit40c9485684ea62c3628bbee3f8b62187d00780c7 (patch)
tree972f3b0955ca5be74cdbfaf65778ad57fb1dccb7 /Porting
parent551dc3741cd19f08b426fb3a6fdeecd79e3179be (diff)
downloadperl-40c9485684ea62c3628bbee3f8b62187d00780c7.tar.gz
bisect-runner.pl should search for lib*.a as well as lib*.so
When forcing the library list on earlier perls to avoid versioned shared objects, also look for static libraries. Also, ensure bisect-runner.pl searches additional library paths given to it via -Alibpth Without this, one can't test build against static libraries in non-standard locations.
Diffstat (limited to 'Porting')
-rwxr-xr-xPorting/bisect-runner.pl8
1 files changed, 7 insertions, 1 deletions
diff --git a/Porting/bisect-runner.pl b/Porting/bisect-runner.pl
index 434bb371a0..0f4ff0662b 100755
--- a/Porting/bisect-runner.pl
+++ b/Porting/bisect-runner.pl
@@ -909,6 +909,10 @@ patch_hints();
# bail out pretty early on. Configure won't let us override libswanted, but it
# will let us override the entire libs list.
+foreach (@{$options{A}}) {
+ push @paths, $1 if /^libpth=(.*)/s;
+}
+
unless (extract_from_file('Configure', 'ignore_versioned_solibs')) {
# Before 1cfa4ec74d4933da, so force the libs list.
@@ -918,7 +922,9 @@ unless (extract_from_file('Configure', 'ignore_versioned_solibs')) {
foreach my $lib (qw(sfio socket inet nsl nm ndbm gdbm dbm db malloc dl dld
ld sun m crypt sec util c cposix posix ucb BSD)) {
foreach my $dir (@paths) {
- next unless -f "$dir/lib$lib.$Config{dlext}";
+ # Note the wonderful consistency of dot-or-not in the config vars:
+ next unless -f "$dir/lib$lib.$Config{dlext}"
+ || -f "$dir/lib$lib$Config{lib_ext}";
push @libs, "-l$lib";
last;
}