Ticket #423: tt423-solaris-archname.patch

File tt423-solaris-archname.patch, 1.3 KB (added by doughera, 13 years ago)
  • config/auto/arch.pm

    diff -r -u parrot-current/config/auto/arch.pm parrot-cc/config/auto/arch.pm
    old new  
    7878        $osname  = 'cygwin'; 
    7979    } 
    8080    elsif ( $cpuarch eq 'i86pc' and $osname eq 'solaris' ) { 
    81         # That's only the perl 32/64 bit setting. We can override it with 
    82         # -m64 / -m32 for ccflags and ldflags though. 
    83         $cpuarch = $archname =~ /-64int/ ? 'x86_64' : 'i386'; 
     81        # That's only the perl value, and is the same for both i386  
     82        # and amd64.  Use uname -p instead to find the processor type. 
     83        chomp($archname = `uname -p`); 
     84        $cpuarch = $archname; 
    8485    } 
    8586 
    8687    if ( $archname =~ m/powerpc/ ) { 
  • config/auto/jit.pm

    diff -r -u parrot-current/config/auto/jit.pm parrot-cc/config/auto/jit.pm
    old new  
    173173        if ( $cpuarch eq 'i386' && $osname eq 'darwin' ) { 
    174174            $jitcapable = 0; 
    175175        } 
     176        # And another exception (TT #423) 
     177        if ( $cpuarch eq 'i386' && $osname eq 'solaris' ) { 
     178            $jitcapable = 0; 
     179        } 
    176180    } 
    177181    return $jitcapable; 
    178182}