Append CFLAGS and LDFLAGS to their Config.pm counterparts in EU::CBuilder
authorNiko Tyni <ntyni@debian.org>
Thu, 28 Apr 2011 06:18:54 +0000 (09:18 +0300)
committerFather Chrysostomos <sprout@cpan.org>
Thu, 19 May 2011 04:33:06 +0000 (21:33 -0700)
commit011e8fb476b5fb27c9aa613360d918aa0b798b3d
tree0874ff1d81803bfd4f1c2681bbf6df663a14994e
parentfbebf34e35d51a2b213ac62fcb4377eda8df2112
Append CFLAGS and LDFLAGS to their Config.pm counterparts in EU::CBuilder

Since ExtUtils::CBuilder 0.27_04 (bleadperl commit 06e8058f27e4),
CFLAGS and LDFLAGS from the environment have overridden the Config.pm
ccflags and ldflags settings. This can cause binary incompatibilities
between the core Perl and extensions built with EU::CBuilder.

Append to the Config.pm values rather than overriding them.
dist/ExtUtils-CBuilder/lib/ExtUtils/CBuilder/Base.pm
dist/ExtUtils-CBuilder/t/04-base.t