Author: kwilliams
Date: Wed Nov  7 19:35:08 2007
New Revision: 10195

Modified:
   Module-Build/trunk/Changes
   Module-Build/trunk/lib/Module/Build/Compat.pm

Log:
Fix INSTALLDIRS=whatever for Makefile processing

Modified: Module-Build/trunk/Changes
==============================================================================
--- Module-Build/trunk/Changes  (original)
+++ Module-Build/trunk/Changes  Wed Nov  7 19:35:08 2007
@@ -1,5 +1,8 @@
 Revision history for Perl extension Module::Build.
 
+ - Fixed processing of INSTALLDIRS=whatever for compatibility
+   Makefiles. [Spotted by John Peacock]
+
  - Zillions of special-cases have been added in Compat.pm for dealing
    with the special Makefile system on VMS. [John E. Malmberg]
 

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       Wed Nov  7 19:35:08 2007
@@ -17,7 +17,7 @@
    VERBINST     => 'verbose',
    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' : 
$_) },
+   INSTALLDIRS => sub {local $_ = shift; ('--installdirs', (/^perl$/ ? 'core' 
: $_)) },
    LIB => sub { ('--install_path', 'lib='.shift()) },
 
    # Some names they have in common

Reply via email to