summaryrefslogtreecommitdiff
path: root/ext/ODBM_File
diff options
context:
space:
mode:
authorVladimir Timofeev <vovkasm@gmail.com>2011-05-10 09:17:41 -0400
committerJesse Vincent <jesse@bestpractical.com>2011-05-18 14:59:37 -0400
commit3c998e07917e4a06d77c572595b246947120b316 (patch)
tree3930eb8b5f79b462879831b6becff2c5da516c44 /ext/ODBM_File
parente1463d312f75528936a9c63f1a2187d2950c38b1 (diff)
downloadperl-3c998e07917e4a06d77c572595b246947120b316.tar.gz
Fix for [perl #90106] 5.14.0-RC2 ODBM_File failures on Ubuntu natty [multiarch]
Ubuntu has juggled lib paths so we get to play games to catch up with them.
Diffstat (limited to 'ext/ODBM_File')
-rw-r--r--ext/ODBM_File/hints/linux.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/ODBM_File/hints/linux.pl b/ext/ODBM_File/hints/linux.pl
index f8ca492b7b..204bba0847 100644
--- a/ext/ODBM_File/hints/linux.pl
+++ b/ext/ODBM_File/hints/linux.pl
@@ -1,8 +1,8 @@
# uses GDBM dbm compatibility feature - at least on SuSE 8.0
$self->{LIBS} = ['-lgdbm'];
-# Debian/Ubuntu have /usr/lib/libgdbm_compat.so.3* but not this file,
+# Debian/Ubuntu have libgdbm_compat.so but not this file,
# so linking may fail
-if (-e '/usr/lib/libgdbm_compat.so' or -e '/usr/lib64/libgdbm_compat.so') {
- $self->{LIBS}->[0] .= ' -lgdbm_compat';
+foreach (split / /, $Config{libpth}) {
+ $self->{LIBS}->[0] .= ' -lgdbm_compat' if -e $_.'/libgdbm_compat.so';
}