Skip to content

Commit

Permalink
msys support for NDBM_File and ODBM_File
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Maischein committed Aug 1, 2023
1 parent a7696c7 commit 6cb7189
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
11 changes: 10 additions & 1 deletion ext/NDBM_File/Makefile.PL
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
use strict;
use ExtUtils::MakeMaker;

our @LIBS;
if( $^O eq 'msys' ) {
@LIBS = ("-lgdbm -lgdbm_compat");
} else {
@LIBS = ("-L/usr/local/lib -lndbm", "-ldbm -lucb");
};

WriteMakefile(
NAME => 'NDBM_File',
LIBS => ["-L/usr/local/lib -lndbm", "-ldbm -lucb"],
LIBS => \@LIBS,
XSPROTOARG => '-noprototypes', # XXX remove later?
VERSION_FROM => 'NDBM_File.pm',
);
11 changes: 10 additions & 1 deletion ext/ODBM_File/Makefile.PL
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
use strict;
use ExtUtils::MakeMaker;

our @LIBS;
if( $^O eq 'msys' ) {
@LIBS = ("-lgdbm -lgdbm_compat");
} else {
@LIBS = ("-ldbm -lucb");
};

WriteMakefile(
NAME => 'ODBM_File',
LIBS => ["-ldbm -lucb"],
LIBS => \@LIBS,
XSPROTOARG => '-noprototypes', # XXX remove later?
VERSION_FROM => 'ODBM_File.pm',
);

0 comments on commit 6cb7189

Please sign in to comment.