
2 Sep
2002
2 Sep
'02
9:47 a.m.
I noticed that when I build ghc-5.04 from source, the resulting executables have interactive mode disabled.
There is some code in mk/config.mk that appears backwards to me (although according to the accompanying comment it is not backwards):
#ifneq "$(findstring $(HostOS_CPP), mingw32 cygwin32 linux solaris2 freebsd netbsd openbsd)" "" GhcWithInterpreter=YES ifeq "$(HaveLibDL)" "YES" SRC_HC_OPTS += -ldl endif #else #GhcWithInterpreter=NO #endif
This appears to turn GHCi off for mingw32, cygwin32, linux, solaris2, freebsd, netbsd, and openbsd.
No, it's actually on for all these platforms. However, you have to bootstrap the compiler with itself before GHCi will be built (see ghc/compiler/Makefile). Cheers, Simon