#2951: Add support for amd64-solaris2 platform
----------------------------+-----------------------------------------------
Reporter: kgardas | Owner:
Type: feature request | Status: new
Priority: normal | Component: Compiler
Version: 6.10.1 | Severity: normal
Keywords: | Testcase:
Os: Solaris | Architecture: x86_64 (amd64)
----------------------------+-----------------------------------------------
Hello,
it would be nice if GHC build correctly detects if it's running on amd64
platform or plain old i386 platform. The problem is that current
config.guess returns in both cases i386-pc-solaris2.* string. Certainly
there is a possibility to use `isainfo -n` to test for application
supported instruction set, see:
{{{
ka...@silence:~/vcs/ghc$ ./config.guess
i386-pc-solaris2.11
ka...@silence:~/vcs/ghc$ isainfo -n
amd64
ka...@silence:~/vcs/ghc$
}}}
I'm just not sure if hacking configure.ac's code below
{{{
i[[3456]]86-*-solaris2*)
HostPlatform=i386-unknown-solaris2 # hack again
TargetPlatform=i386-unknown-solaris2
BuildPlatform=i386-unknown-solaris2
HostPlatform_CPP='i386_unknown_solaris2'
HostArch_CPP='i386'
HostVendor_CPP='unknown'
HostOS_CPP='solaris2'
;;
}}}
and changing HostArch_CPP from 'i386' to 'x86_64' would be enough for the
change.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2951>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs