Re: [PATCH] [perl #29612] ndbm failure in make test
Alexey Tourbin [Sat, 22 May 2004 02:22:22 +0000 (06:22 +0400)]
Message-ID: <20040521222222.GJ2030@solemn.turbinal.org>

p4raw-id: //depot/perl@22892

ext/NDBM_File/hints/linux.pl

index 405afa7..174f913 100644 (file)
@@ -3,4 +3,6 @@
 # (no null key support)
 # Jonathan Stowe <gellyfish@gellyfish.com>
 use Config;
-$self->{LIBS} = ['-lgdbm'] if $Config{libs} =~ /(?:^|\s)-lgdbm(?:\s|$)/;
+use ExtUtils::Liblist;
+($self->{LIBS}) = ExtUtils::Liblist->ext('-lgdbm -lgdbm_compat')
+       if $Config{libs} =~ /(?:^|\s)-lgdbm(?:\s|$)/;