Skip to content

Commit

Permalink
Fix Carp::Heavy bugs
Browse files Browse the repository at this point in the history
git-svn-id: svn://axkit.org/XML-Parser/trunk@22 2154792d-645b-41ca-96ca-efebb8c93226
  • Loading branch information
matt authored and chorny committed Sep 13, 2010
1 parent 29c7340 commit 2931971
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 22 deletions.
39 changes: 18 additions & 21 deletions Expat/Makefile.PL
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,30 +3,27 @@ use Config;
use English; use English;


my $libs = "-lexpat"; my $libs = "-lexpat";
@extras = (); my @extras = ();


push(@extras, INC => "-I$expat_incpath") push(@extras, INC => "-I$expat_incpath") if $expat_incpath;
if $expat_incpath;


$libs = "-L$expat_libpath $libs" $libs = "-L$expat_libpath $libs" if $expat_libpath;
if $expat_libpath;

push(@extras, CAPI => 'TRUE')
push(@extras, if (($PERL_VERSION >= 5.005) and ($OSNAME eq 'MSWin32')
CAPI => 'TRUE') and ($Config{archname} =~ /-object\b/i));
if ($PERL_VERSION >= 5.005 and $OSNAME eq 'MSWin32'
and $Config{archname} =~ /-object\b/i);


push(@extras, push(@extras,
ABSTRACT => "Lowlevel access to James Clark's expat XML parser", ABSTRACT => "Lowlevel access to James Clark's expat XML parser",
AUTHOR => 'Clark Cooper (coopercc@netheaven.com)') AUTHOR => 'Matt Sergeant (matt@sergeant.org)')
if ($ExtUtils::MakeMaker::VERSION >= 5.4301); if ($ExtUtils::MakeMaker::VERSION >= 5.4301);

WriteMakefile( WriteMakefile(
NAME => 'XML::Parser::Expat', NAME => 'XML::Parser::Expat',
C => ['Expat.c'], C => ['Expat.c'],
LIBS => $libs, LIBS => $libs,
XSPROTOARG => '-noprototypes', XSPROTOARG => '-noprototypes',
VERSION_FROM => 'Expat.pm', VERSION_FROM => 'Expat.pm',
@extras @extras
); );


2 changes: 1 addition & 1 deletion Makefile.PL
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ sub MY::test
$ret; $ret;
} }


@extras = (); my @extras = ();


push(@extras, push(@extras,
CAPI => 'TRUE') CAPI => 'TRUE')
Expand Down

0 comments on commit 2931971

Please sign in to comment.