Description: Add $Config{ccflags} to CCFLAGS Since 5.14 we need the same CCFLAGS Perl itself was compiled with. Cf. e.g. http://www.nntp.perl.org/group/perl.perl5.porters/2011/04/msg171536.html Origin: vendor Forwarded: no Author: gregor herrmann Last-Update: 2012-03-23 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,5 +1,6 @@ use 5.008; use ExtUtils::MakeMaker; +use Config; # See lib/ExtUtils/MakeMaker.pm for details of how to influence # the contents of the Makefile that is written. WriteMakefile( @@ -18,7 +19,7 @@ # Un-comment this if you add C files to link with later: OBJECT => 'headers.o HTTPHeaders.o', # link all the C files too XSOPT => '-C++', - CCFLAGS => '-g', + CCFLAGS => "-g $Config{ccflags}", CC => 'g++', clean => { FILES => "const-c.inc const-xs.inc" }, );