DB_File was forcing "-llibdb" for all MSWin32 builds. That's an MSVC
thing, so this patch makes it use "-ldb" if the compiler is gcc (e.g.
for Strawberry Perl and friends).
Paul Marquess suggested I send a patch to p5p and will update the
source on CPAN when he has a dev box again.
Message-Id: <
1232541093-2247-1-git-send-email-dagolden@cpan.org>
Plus: bump $VERSION.
use Carp;
-$VERSION = "1.817" ;
+$VERSION = "1.817_01" ;
$VERSION = eval $VERSION; # needed for dev releases
{
my $LIB = "-ldb" ;
# so is win32
-$LIB = "-llibdb" if $^O eq 'MSWin32' ;
+if ( $^O eq 'MSWin32' ) {
+ $LIB = $Config{cc} =~ /gcc/ ? "-ldb" : "-llibdb";
+}
WriteMakefile(
NAME => 'DB_File',