On 01/14/2014 09:43 AM, Graham Ollis via RT wrote:
Tue Jan 14 10:43:07 2014: Request 92144 was acted upon.
Transaction: Ticket created by PLICEASE
        Queue: Inline
      Subject: can't find gcc-4 on cygwin (patch to fix)
    Broken in: (no value)
     Severity: (no value)
        Owner: Nobody
   Requestors: plice...@cpan.org
       Status: new
  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=92144 >


Hi there, the Makefile.PL incorrectly is unable to find gcc-4 on cygwin:

  Config.pm indicates that your version of Perl was built with this C compiler:

      gcc-4

  I cannot locate this compiler on your system.

This  patch fixes it:

--- a/C/Makefile.PL
+++ b/C/Makefile.PL
@@ -5,6 +5,7 @@ use File::Spec;

  my ($cc, $exe) = @Config{'cc', '_exe'};
  $cc =~ s/\s+-.+$//; #remove possible trailing options
+$exe = '' if $^O eq 'cygwin';

  my $found = 0;
  my $delim = $Config::Config{path_sep};

LGTM

Reply via email to