On Sun, Apr 04, 2004 at 09:53:55AM +0100, Nick Ing-Simmons wrote:
> MakeMaker doesn't set LIB in Makefile for Cygwin. 
> But PASTHRU still passes it through:
>  ... LIB="$(LIB)" ...
> 
> And Cygwin's make then gets $(LIB) from environment 
> so that expands to 
>    LIB="...\Somewhere\" 
> and passes it to sub-make where when string is next used 
> the trailing \ (from the directory path) quotes the '"' and we get a mess. 

Ahh, make is picking it up from the environment.  Hmmm.  I wonder if 
pasthru() should check to see if $self->{thing} is defined before adding
it to PASTHRU.

--- lib/ExtUtils/MM_Unix.pm     3 Apr 2004 00:15:59 -0000       1.214
+++ lib/ExtUtils/MM_Unix.pm     4 Apr 2004 20:10:49 -0000
@@ -3064,10 +3064,12 @@
     $sep .= "\\\n\t";
 
     foreach $key (qw(LIB LIBPERL_A LINKTYPE PREFIX OPTIMIZE)) {
+        next unless defined $self->{$key};
        push @pasthru, "$key=\"\$($key)\"";
     }
 
     foreach $key (qw(DEFINE INC)) {
+        next unless defined $self->{$key};
        push @pasthru, "PASTHRU_$key=\"\$(PASTHRU_$key)\"";
     }
 


-- 
Michael G Schwern        [EMAIL PROTECTED]  http://www.pobox.com/~schwern/
Operation Thrusting Peach

Reply via email to