--- mk/cabal.mk.sav	2009-08-27 08:31:02.000000000 -0400
+++ mk/cabal.mk	2009-08-27 08:33:16.000000000 -0400
@@ -25,17 +25,21 @@
 
 default all: with-bootstrapping-compiler
 
+CABAL_GHC_MACPORTS_FLAGS = --ghc-option='-pgmP XXPATH_TO_GCCXX -E -undef -traditional' --ghc-option='-pgmc XXPATH_TO_GCCXX' --ghc-option='-pgml XXPATH_TO_GCCXX' --ghc-option='-pgma XXPATH_TO_GCCXX'
+
 with-bootstrapping-compiler:
-	$(CABAL) configure --distpref dist-inplace          \
+	$(CABAL) configure  --distpref dist-inplace          \
 	                   $(INPLACE_DIRS_CONFIGURE_FLAGS)  \
 	                   $(USE_BOOT_CONFIGURE_FLAGS)      \
 	                   $(COMMON_CONFIGURE_FLAGS)        \
+			   $(CABAL_GHC_MACPORTS_FLAGS)      \
 	                   $(EXTRA_INPLACE_CONFIGURE_FLAGS)
-	$(CABAL) build     --distpref dist-inplace $(BUILD_FLAGS)
+	$(CABAL) build      --distpref dist-inplace \
+			   $(BUILD_FLAGS)
 	$(CABAL) install   --distpref dist-inplace $(INSTALL_FLAGS)
 
 with-stage-2:
-	$(CABAL) configure --distpref dist-install         \
+	$(CABAL) configure  --distpref dist-install         \
 	                   $(INSTALL_DIRS_CONFIGURE_FLAGS) \
 	                   $(USE_STAGE2_CONFIGURE_FLAGS)   \
 	                   $(COMMON_CONFIGURE_FLAGS)       \
