From: Dave Rolsky Date: Sun, 5 Apr 2009 15:38:34 +0000 (-0500) Subject: preserve compiler flags from Config.pm X-Git-Tag: 0.80_01~12^2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=72bc0a470ac680d3f73091f212a76b8edc638165;p=gitmo%2FClass-MOP.git preserve compiler flags from Config.pm --- diff --git a/Changes b/Changes index fec843b..85c130d 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,10 @@ Revision history for Perl extension Class-MOP. +0.81 + * Makefile.PL + - Make sure to preserve any compiler flags already defined in + Config.pm. Patch by Vincent Pit. RT #44739. + 0.80 Wed, April 1, 2009 * Class::MOP::* - Call user_class->meta in fewer places, with the eventual goal diff --git a/Makefile.PL b/Makefile.PL index 6cc4507..ef1680f 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -10,7 +10,8 @@ perl_version '5.008001'; 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';