Ticket #877: parrot_snowleopard_configure.patch

File parrot_snowleopard_configure.patch, 0.7 KB (added by johnewart, 12 years ago)

Patch against parrot trunk to support compilation on 10.6 with GCC 4.2

  • config/init/hints/darwin.pm

     
    3939 
    4040    my $lib_dir = $conf->data->get('build_dir') . "/blib/lib"; 
    4141    $flagsref->{ldflags} .= " -L$lib_dir"; 
    42     $flagsref->{ccflags} .= " -pipe -fno-common -Wno-long-double "; 
    4342 
     43        if ($ENV{'MACOSX_DEPLOYMENT_TARGET'} eq "10.6")   
     44        { 
     45        $flagsref->{ccflags} .= " -pipe -fno-common "; 
     46        } else  { 
     47        $flagsref->{ccflags} .= " -pipe -fno-common -Wno-long-double "; 
     48        } 
     49 
    4450    $conf->data->set( 
    4551        darwin              => 1, 
    4652        osx_version         => $ENV{'MACOSX_DEPLOYMENT_TARGET'},