From: simonmar Date: Thu, 11 Nov 2004 09:38:22 +0000 (+0000) Subject: [project @ 2004-11-11 09:38:22 by simonmar] X-Git-Tag: Initial_conversion_from_CVS_complete~1450 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=d80f850f1dab535e507defc4309ba3b23be204d1 [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 --- 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