New make variable: $(WithNofibHc) which defines the Haskell compiler
used to build nofib.
Define $(GHC_INPLACE) in fptools/mk/config.mk.in. $(WithNofibHc) is
set to $(GHC_INPLACE) by default.
Fix $(MKDEPENDHS) in ghc/lib/std/Makefile.
SUBDIRS=
endif
-HC = $(GHC_INPLACE)
-
#-----------------------------------------------------------------------------
# Setting the standard variables
#
+HC = $(GHC_INPLACE)
+MKDEPENDHS = $(GHC_INPLACE)
+
LIBRARY = libHS$(_way).a
LIBOBJS = $(HS_OBJS)
#
################################################################################
+WithNofibHc = $(GHC_INPLACE)
# NoFibSubDirs controls which set of tests should be run
# You can run one or more of
HC = @WithHc@
MKDEPENDHS = $(GHC)
+# Sometimes we want to invoke ghc from the build tree in different
+# projects (eg. it's handy to have a nofib & a ghc build in the same
+# tree). We can refer to "this ghc" as $(GHC_INPLACE):
+
+GHC_INPLACE = $(FPTOOLS_TOP)/ghc/driver/ghc-inplace
+
#-----------------------------------------------------------------------------
# C compiler
#