installing ghc on Solaris without gcc

Sven Eric Panitz sep@softwareag.com
Wed, 03 Apr 2002 16:33:20 +0200


after having used ghc on linux and win32 for quite a while now
I am stuck with installing the binary distribution on Solaris.

The Solaris machine does not have a gcc installed. This is correctly
detected by ./configure.

However the eventually installed ghc still calls gcc instead of
just cc.

Eventually I made a symbolic link 
  ln -s cc gcc
just to see if this might work. 

Unfortunately  this gives linker errors:

bash-2.04$ ghc Main.hs
compilation IS NOT required
Undefined                       first referenced
 symbol                             in file
PrelIOBase_heapOverflow_closure     (command line)
PrelInt_I16zh_static_info           (command line)
PrelPack_unpackCString_closure      /usr/local/lib/ghc-5.02.2/libHSrts.a(RtsAPI.o)
PrelFloat_Dzh_con_info              /usr/local/lib/ghc-5.02.2/libHSrts.a(RtsAPI.o)
PrelWord_W64zh_con_info             /usr/local/lib/ghc-5.02.2/libHSrts.a(RtsAPI.o)
PrelStable_StablePtr_static_info    /usr/local/lib/ghc-5.02.2/libHSrts.a(RtsAPI.o)
...


Is ghc supposed to work with cc instead of gcc? If this is so,
what am I doing wrongly?

thanks

Sven Eric