(no null key support), therefore link with libgdbm
(if available), since it has a working ndbm emulation,
from Jonathan Stowe.
p4raw-id: //depot/perl@10984
ext/NDBM_File/hints/cygwin.pl Hint for NDBM_File for named architecture
ext/NDBM_File/hints/dec_osf.pl Hint for NDBM_File for named architecture
ext/NDBM_File/hints/dynixptx.pl Hint for NDBM_File for named architecture
+ext/NDBM_File/hints/linux.pl Hint for NDBM_File for named architecture
ext/NDBM_File/hints/sco.pl Hint for NDBM_File for named architecture
ext/NDBM_File/hints/solaris.pl Hint for NDBM_File for named architecture
ext/NDBM_File/hints/svr4.pl Hint for NDBM_File for named architecture
--- /dev/null
+# Some distributions have both gdbm and ndbm
+# Prefer gdbm to avoid the broken ndbm in some distributions
+# (no null key support)
+# Jonathan Stowe <gellyfish@gellyfish.com>
+use Config;
+$self->{LIBS} = ['-lgdbm'] if $Config{libs} =~ /\b-lgdbm\b/;