diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-06-27 11:55:06 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-06-27 11:55:06 +0000 |
commit | 93121600bba1d790ccf4d313750cd86ebd760391 (patch) | |
tree | bd52f05ba2e09d38062112f7762e7adfbce62e26 /ext | |
parent | 30db15becd51cfde87da4e4c700076871cd415ee (diff) | |
download | perl-93121600bba1d790ccf4d313750cd86ebd760391.tar.gz |
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.
p4raw-id: //depot/perl@10984
Diffstat (limited to 'ext')
-rw-r--r-- | ext/NDBM_File/hints/linux.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/NDBM_File/hints/linux.pl b/ext/NDBM_File/hints/linux.pl new file mode 100644 index 0000000000..47f9d2c39a --- /dev/null +++ b/ext/NDBM_File/hints/linux.pl @@ -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 <gellyfish@gellyfish.com> +use Config; +$self->{LIBS} = ['-lgdbm'] if $Config{libs} =~ /\b-lgdbm\b/; |