Subject: | Don't obliterate perl's default value of CCFLAGS |
Passing CCFLAGS => $ccflags to makemaker_args() completely discards
perl's default value of CCFLAGS. This may be bad because
compiler-specific flags are usually stored in it (e.g. Intel CC expects
to find -no-gcc in it).
The attached patch appends your Class::MOP ccflags to the default ones.
Vincent
Subject: | Class-MOP-0.80-ccflags.patch |
--- Makefile.PL 2009-04-01 23:55:18.000000000 +0200
+++ Makefile.PL 2009-04-02 00:03:14.000000000 +0200
@@ -10,7 +10,8 @@
all_from 'lib/Class/MOP.pm';
license 'perl';
-my $ccflags = ' -I.';
+require Config;
+my $ccflags = ($Config::Config{ccflags} || '') . ' -I.';
$ccflags .= ' -Wall' if -d '.svn' || -d '.git' || $ENV{MAINTAINER_MODE};
requires 'Carp';