X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2FMakefile;h=72985607a0331f12283d8133740d8a0bf5d1db7b;hb=8002c9d5ceafef6b8fa6765701c5c3103c69760c;hp=fcb24afcf56aedf2c264f3b1969ef1bf5e4d0ef0;hpb=5d8f5e005c673f6e14a7e1b61f889b176ccf4766;p=ghc-hetmet.git diff --git a/ghc/compiler/Makefile b/ghc/compiler/Makefile index fcb24af..7298560 100644 --- a/ghc/compiler/Makefile +++ b/ghc/compiler/Makefile @@ -408,7 +408,7 @@ SRC_HC_OPTS += -DGHCI -package template-haskell PKG_DEPENDS += template-haskell # Use threaded RTS with GHCi, so threads don't get blocked at the prompt. -# SRC_HC_OPTS += -threaded +SRC_HC_OPTS += -threaded ALL_DIRS += ghci @@ -755,6 +755,9 @@ VERSION = $(ProjectVersion) PKG_DEPENDS += base haskell98 PACKAGE_CPP_OPTS += -DPKG_DEPENDS='$(PKG_DEPENDS)' +# Omit Main from the library, the client will want to plug their own Main in +LIBOBJS = $(filter-out $(odir)/main/Main.o $(odir)/parser/hschooks.o, $(OBJS)) + # disable splitting: it won't really help with GHC, and the specialised # build system for ghc/compiler isn't set up to handle it. SplitObjs = NO