Change 10984 by jhi@alpha on 2001/06/27 11:55:06
In some Linux distributions the libndbm is broken
(no null key support), therefore link with libgdbm
(if available), since it has a working ndbm emulation,
from Jonathan Stowe.
Affected files ...
... //depot/perl/MANIFEST#481 edit
... //depot/perl/ext/NDBM_File/hints/linux.pl#1 add
Differences ...
==== //depot/perl/MANIFEST#481 (text) ====
Index: perl/MANIFEST
--- perl/MANIFEST.~1~ Wed Jun 27 16:00:09 2001
+++ perl/MANIFEST Wed Jun 27 16:00:09 2001
@@ -386,6 +386,7 @@
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
==== //depot/perl/ext/NDBM_File/hints/linux.pl#1 (text) ====
Index: perl/ext/NDBM_File/hints/linux.pl
--- perl/ext/NDBM_File/hints/linux.pl.~1~ Wed Jun 27 16:00:09 2001
+++ perl/ext/NDBM_File/hints/linux.pl Wed Jun 27 16:00:09 2001
@@ -0,0 +1,6 @@
+# Some distributions have both gdbm and ndbm
+# Prefer gdbm to avoid the broken ndbm in some distributions
+# (no null key support)
+# Jonathan Stowe <[EMAIL PROTECTED]>
+use Config;
+$self->{LIBS} = ['-lgdbm'] if $Config{libs} =~ /\b-lgdbm\b/;
End of Patch.