1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
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 <gregoa@debian.org>
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" },
);
|