Skip to content

Commit

Permalink
Add BERKELEYDB_DEFINE_TRACE env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
pmqs committed Jul 18, 2019
1 parent 4273345 commit bd9ebf5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ $OS2 = "-DOS2" if $^O eq 'os2' ;
my $WALL = '';
#$WALL = ' -Wall ' if $Config{'cc'} =~ /gcc/ ;

my $TRACE = "";
$TRACE = "-DTRACE" if $ENV{BERKELEYDB_DEFINE_TRACE} ;

WriteMakefile(
NAME => 'BerkeleyDB',
Expand All @@ -56,7 +58,7 @@ WriteMakefile(
INC => "-I$INC_DIR",
VERSION_FROM => 'BerkeleyDB.pm',
XSPROTOARG => '-noprototypes',
DEFINE => "$OS2 $WALL",
DEFINE => "$OS2 $WALL $TRACE",
#'macro' => { INSTALLDIRS => 'perl' },
'dist' => {COMPRESS=>'gzip', SUFFIX=>'gz'},
($] >= 5.005
Expand Down

0 comments on commit bd9ebf5

Please sign in to comment.