I've an existing module (PerlGcc) on CPAN that allows you to use gcc instead of the Sun compilers to compile modules for use with the perl we ship in Solaris. At the moment this needs a very minor weak to MakeMaker.pm to get it to work, but I'm having to ship a copy of MakeMaker with PerlGcc, which is a pain to put it mildly as I have to keep tracking MakeMaker releases. I'd like to propose a minor modification to MakeMaker that would allow me to prevent the cross-checking of the perl version being used with the location of it's Config.pm - my PerlGcc module works by setting PERL5LIB so that a replacement gcc-ized Config.pm is picked up instead of the default.

If at all possible I'd like this to go into 5.8.3.

I've attached a suggested patch below, I'm not bothered what the environment variable is called, and I'd be grateful for any better suggesions on how this might be achieved, if you have any!

Thanks,

Alan Burlison
*** MakeMaker.pm.orig   Mon Dec 15 15:15:23 2003
--- MakeMaker.pm        Mon Dec 15 15:20:20 2003
***************
*** 499,505 ****
      $self->init_DIRFILESEP;
      $self->init_linker;
  
!     if (! $self->{PERL_SRC} ) {
          require VMS::Filespec if $Is_VMS;
          my($pthinks) = $self->canonpath($INC{'Config.pm'});
          my($cthinks) = $self->catfile($Config{'archlibexp'},'Config.pm');
--- 499,505 ----
      $self->init_DIRFILESEP;
      $self->init_linker;
  
!     if (! $self->{PERL_SRC} && ! exists($ENV{PERL5_OVERRIDE_CONFIG})) {
          require VMS::Filespec if $Is_VMS;
          my($pthinks) = $self->canonpath($INC{'Config.pm'});
          my($cthinks) = $self->catfile($Config{'archlibexp'},'Config.pm');

Reply via email to