Permalink
Browse files

Fix build on Windows: Configure packages in the right order

Also added a comment explaining that addPackages need to be in
dependency order.
  • Loading branch information...
1 parent 0940813 commit 358838cb1a98eb23f005c087f7f3c083bc57ef39 @igfoo igfoo committed with igfoo Jul 24, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 ghc.mk
View
@@ -389,6 +389,9 @@ endif
endif
endef
+# Add all the packages. Note that we need to add them in dependency
+# order, as this is the order that they get configured in.
+
$(eval $(call addPackage,ghc-prim))
ifeq "$(CLEANING)" "YES"
$(eval $(call addPackage,integer-gmp))
@@ -404,9 +407,9 @@ $(eval $(call addPackage,bytestring))
$(eval $(call addPackage,containers))
$(eval $(call addPackage,old-locale))
$(eval $(call addPackage,old-time))
-$(eval $(call addPackage,time))
$(eval $(call addPackage,Win32,($$(Windows),YES)))
+$(eval $(call addPackage,time))
$(eval $(call addPackage,unix,($$(Windows),NO)))
$(eval $(call addPackage,directory))

0 comments on commit 358838c

Please sign in to comment.