1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
Description: Add $Config{ccflags} to CCFLAGS
Since 5.14 we need the same CCFLAGS Perl itself was compiled with.
So don't override but add to CCFLAGS.
Origin: vendor; but also on CPAN RT
Bug-Debian: https://bugs.debian.org/869208
Bug: https://rt.cpan.org/Public/Bug/Display.html?id=79754
Forwarded: not-needed
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2017-07-21
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -1,8 +1,9 @@
use ExtUtils::MakeMaker;
+use Config;
$CC = 'g++';
-%args = ('CCFLAGS' => '-Wall');
+%args = ('CCFLAGS' => "-Wall $Config{ccflags}");
if($^O eq 'cygwin') {
$args{'LDDLFLAGS'} = '-shared -L/usr/local/lib';
|