Ticket #1049: tt1049.patch

File tt1049.patch, 0.8 KB (added by doughera, 11 years ago)
  • config/inter/make.pm

    diff --git a/config/inter/make.pm b/config/inter/make.pm
    index 2d315b9..996bd86 100644
    a b  
    112112sub _set_make_c { 
    113113    my ($conf, $prog) = @_; 
    114114    if ( $conf->data->get('gmake_version') ) { 
    115         $conf->data->set( make_c => "$prog -C" ); 
     115        $conf->data->set( make_c => "+$prog -C" ); 
    116116    } 
    117117    else { 
    118  
    119         # get the default value 
    120         my $make_c = $conf->data->get('make_c'); 
    121  
    122         # TT #1049: this is an ugly hack 
    123         # replace the value for $(MAKE) with the actual path or we'll end up 
    124         # with a variable that recursively refers to itself 
    125         $make_c =~ s/\$\(MAKE\)/$prog/; 
    126  
    127         $conf->data->set( make_c => $make_c ); 
     118        # The default value is fine. 
    128119    } 
    129120} 
    130121