Re: [solarisx86] Haskell GHC
- In message <1372962111.94869.YahooMailNeo@...>, Aposto
los Syropoulos writes:
>>There was a discussion last week on the SmartOS list:Some helpful hints in those B&C threads.
>I tried once to compile Haskell but then I realized that I need Haskell
>to compile Haskell. I asked people at the mailing list and here is the
The build/bootstrap process reminds me a bit of building gcc2
with Sun Workshop compilers on Solaris 2.4 on a Intel Pentium
except that Solaris was still a first class GNU platform.
Christian Maeder's ghc-7.0.3 binary and this build.mk were sufficient
to build a statically linked ghc 7.6 on Solaris 11.1.
The PATH is important as GHC build system seems to get confused
when the GNU bits are first.
And GHC did not build with my gcc 4.8.1, but did with Oracle's
$ env PATH=/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/gnu/bin:/opt/ghc/bin \
SHELL=/bin/bash ./configure --prefix=/opt/ghc
$ cat mk/build.mk
SHELL = /bin/bash
CC = /usr/bin/gcc
LD = /usr/bin/ld
CFLAGS = -fPIC -fomit-frame-pointer
LdIsGNU = NO
SOLARIS_BROKEN_SHLD = YES
Now onto Cabal and Gitit.