--- Expat/Makefile.PL~ 2007-11-19 23:06:55.000000000 +0100 +++ Expat/Makefile.PL~ 2008-09-10 19:29:16.856969855 +0200 @@ -18,10 +18,14 @@ AUTHOR => 'Matt Sergeant (matt@sergeant.org)') if ($ExtUtils::MakeMaker::VERSION >= 5.4301); +my $myLDFLAGS = $ENV{LDFLAGS}; +my $LDDLFLAGS= join ' ', $Config{lddlflags},$myLDFLAGS; + WriteMakefile( NAME => 'XML::Parser::Expat', C => ['Expat.c'], LIBS => $libs, + LDDLFLAGS => $LDDLFLAGS, XSPROTOARG => '-noprototypes', VERSION_FROM => 'Expat.pm', @extras