;; Set options suggested in README.BUILDING.HUGS. (substitute* "mk/config.mk.in" (("^WAY_o_HC_OPTS=.*") "WAY_o_HC_OPTS=\ WithGhcHc=ghc-4.06 GhcLibWays=u HsLibsFor=hugs # Setting this leads to building the interpreter. # This requires a few more patches. GhcHcOpts=-DDEBUG GhcRtsHcOpts=-optc-DDEBUG -optc-D__HUGS__ -unreg -optc-g GhcRtsCcOpts=-optc-DDEBUG -optc-g -optc-D__HUGS__ SplitObjs=NO")) (substitute* "ghc/interpreter/interface.c" ;; interface.c:2702: `stackOverflow' redeclared as different kind of symbol ;; ../includes/Stg.h:188: previous declaration of `stackOverflow' ((".*Sym\\(stackOverflow\\).*") "") ;; interface.c:2713: `stg_error_entry' undeclared here (not in a function) ;; interface.c:2713: initializer element is not constant ;; interface.c:2713: (near initialization for `rtsTab[11].ad') ((".*SymX\\(stg_error_entry\\).*") "") ;; interface.c:2713: `Upd_frame_info' undeclared here (not in a function) ;; interface.c:2713: initializer element is not constant ;; interface.c:2713: (near initialization for `rtsTab[32].ad') ((".*SymX\\(Upd_frame_info\\).*") ""))