[Module-build-checkins] [svn:Module-Build] r6299 - in Module-Build/trunk: . lib/Module/Build
Status: Beta
Brought to you by:
kwilliams
From: <ra...@cv...> - 2006-05-16 07:43:31
|
Author: randys Date: Tue May 16 00:42:52 2006 New Revision: 6299 Modified: Module-Build/trunk/Changes Module-Build/trunk/lib/Module/Build/Compat.pm Log: Module::Build::Compat's emulation of INC is incorrectly prepending a -I to the value of INC. Modified: Module-Build/trunk/Changes ============================================================================== --- Module-Build/trunk/Changes (original) +++ Module-Build/trunk/Changes Tue May 16 00:42:52 2006 @@ -2,6 +2,12 @@ 0.2801 + - Module::Build::Compat's emulation of INC is incorrectly prepending + a -I to the value of INC. This is incorrect because there should + already be a -I on the value. I.E. it's "perl Makefile.PL INC=-Ifoo" + not "perl Makefile.PL INC=foo" so Compat should not prefix a -I. + [Patch by Michael Schwern] + - Native batch scripts under Windows should not be converted by pl2bat. [Spotted by Ron Savage] Modified: Module-Build/trunk/lib/Module/Build/Compat.pm ============================================================================== --- Module-Build/trunk/lib/Module/Build/Compat.pm (original) +++ Module-Build/trunk/lib/Module/Build/Compat.pm Tue May 16 00:42:52 2006 @@ -15,7 +15,7 @@ ( TEST_VERBOSE => 'verbose', VERBINST => 'verbose', - INC => sub { map {('--extra_compiler_flags', "-I$_")} Module::Build->split_like_shell(shift) }, + INC => sub { map {('--extra_compiler_flags', $_)} Module::Build->split_like_shell(shift) }, POLLUTE => sub { ('--extra_compiler_flags', '-DPERL_POLLUTE') }, INSTALLDIRS => sub {local $_ = shift; 'installdirs=' . (/^perl$/ ? 'core' : $_) }, LIB => sub { ('--install_path', 'lib='.shift()) }, |