From: David Cantrell Date: Thu, 15 Nov 2007 00:17:07 +0000 (+0000) Subject: Adjust ODBM_File for Debian. See: X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c4b0127eb310384d0e10cb85e1174053f59194e0;p=p5sagit%2Fp5-mst-13.2.git Adjust ODBM_File for Debian. See: Subject: Re: 5.10 build failure on Debian. Message-ID: <20071115001707.GA29642@bytemark.barnyard.co.uk> p4raw-id: //depot/perl@32321 --- diff --git a/ext/ODBM_File/hints/linux.pl b/ext/ODBM_File/hints/linux.pl index 9271b45..43b59df 100644 --- a/ext/ODBM_File/hints/linux.pl +++ b/ext/ODBM_File/hints/linux.pl @@ -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'; +}