It's not clear if LDFLAGS flags will be given to gcc or ld,
[ghc-hetmet.git] / ghc.mk
diff --git a/ghc.mk b/ghc.mk
index 7853aff..b47b49c 100644 (file)
--- a/ghc.mk
+++ b/ghc.mk
@@ -638,6 +638,9 @@ $(foreach lib,$(STAGE0_PACKAGES),$(eval \
   libraries/$(lib)_dist-boot_CONFIGURE_PHASE = 1))
 compiler_stage1_CONFIGURE_PHASE = 1
 ghc_stage1_CONFIGURE_PHASE = 1
+driver/ghc_dist_CONFIGURE_PHASE = 1
+driver/ghci_dist_CONFIGURE_PHASE = 1
+driver/haddock_dist_CONFIGURE_PHASE = 1
 
 # In phase 2, the phase 1 things actually get built
 
@@ -649,6 +652,7 @@ ghc_stage2_CONFIGURE_PHASE = 3
 $(foreach lib,$(PACKAGES) $(PACKAGES_STAGE2),$(eval \
   libraries/$(lib)_dist-install_CONFIGURE_PHASE = 3))
 
+utils/touchy_dist_CONFIGURE_PHASE = 3
 utils/hp2ps_dist_CONFIGURE_PHASE = 3
 utils/genapply_dist_CONFIGURE_PHASE = 3
 utils/haddock_dist_CONFIGURE_PHASE = 3
@@ -738,11 +742,7 @@ $(eval $(call build-package,libraries/bin-package-db,dist-boot,0))
 fixed_pkg_prev=
 $(foreach pkg,$(STAGE0_PACKAGES),$(eval $(call fixed_pkg_dep,$(pkg),dist-boot)))
 
-compiler/stage1/package-data.mk : \
-    libraries/Cabal/dist-boot/package-data.mk \
-    libraries/hpc/dist-boot/package-data.mk \
-    libraries/extensible-exceptions/dist-boot/package-data.mk \
-    libraries/bin-package-db/dist-boot/package-data.mk
+compiler/stage1/package-data.mk : $(fixed_pkg_prev)
 
 # Make sure we have all the GHCi libs by the time we've built
 # ghc-stage2.  DPH includes a bit of Template Haskell which needs the