X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Flib%2Fcompat%2FMakefile;h=fa35db7a765688d6b4cf3ee64467fd1b67d24189;hb=d80f850f1dab535e507defc4309ba3b23be204d1;hp=081ea7828f6183be78495f62906d5eaeadbdc49d;hpb=e1c6e73ee529c1fa95ca85e6999319949a8f2991;p=ghc-hetmet.git 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