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