Subject: Re: 5.10 build failure on Debian.
Message-ID: <
20071115001707.GA29642@bytemark.barnyard.co.uk>
p4raw-id: //depot/perl@32321
# 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';
+}