Adjust ODBM_File for Debian. See:
David Cantrell [Thu, 15 Nov 2007 00:17:07 +0000 (00:17 +0000)]
Subject: Re: 5.10 build failure on Debian.
Message-ID: <20071115001707.GA29642@bytemark.barnyard.co.uk>

p4raw-id: //depot/perl@32321

ext/ODBM_File/hints/linux.pl

index 9271b45..43b59df 100644 (file)
@@ -1,2 +1,8 @@
 # uses GDBM dbm compatibility feature - at least on SuSE 8.0
-$self->{LIBS} = ['-lgdbm -lgdbm_compat'];
+$self->{LIBS} = ['-lgdbm'];
+
+# Debian/Ubuntu have /usr/lib/libgdbm_compat.so.3* but not this file,
+# so linking may fail
+if (-f '/usr/lib/libgdbm_compat.so') {
+    $self->{LIBS}->[0] .= ' -lgdbm_compat';
+}