[project @ 2004-11-11 09:38:22 by simonmar]
authorsimonmar <unknown>
Thu, 11 Nov 2004 09:38:22 +0000 (09:38 +0000)
committersimonmar <unknown>
Thu, 11 Nov 2004 09:38:22 +0000 (09:38 +0000)
- 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

index 081ea78..fa35db7 100644 (file)
@@ -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