From d80f850f1dab535e507defc4309ba3b23be204d1 Mon Sep 17 00:00:00 2001 From: simonmar Date: Thu, 11 Nov 2004 09:38:22 +0000 Subject: [PATCH] [project @ 2004-11-11 09:38:22 by simonmar] - include cbits dir - omit certain libraries when ghc > 6.2 - build this library at boot-time, because it will be needed by ghc-pkg --- ghc/lib/compat/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ghc/lib/compat/Makefile b/ghc/lib/compat/Makefile index 081ea78..fa35db7 100644 --- a/ghc/lib/compat/Makefile +++ b/ghc/lib/compat/Makefile @@ -49,4 +49,13 @@ SRC_HC_OPTS += -I$(FPTOOLS_TOP)/libraries SRC_HC_OPTS += -fglasgow-exts +# libghccompat is needed to build ghc-pkg, which is built during 'make boot', +# so we must build this library during 'make boot' too. +# Do a recursive 'make all' after generating dependencies, because this +# will work with 'make -j'. +ifneq "$(BootingFromHc)" "YES" +boot :: depend + $(MAKE) all +endif + include $(TOP)/mk/target.mk -- 1.7.10.4