Add configure option --with-macos-deployment-target
[ghc-hetmet.git] / mk / config.mk.in
index fc26319..da5d957 100644 (file)
@@ -185,6 +185,11 @@ BootingFromUnregisterisedHc = @BootingFromUnregisterisedHc@
 #
 XMLDocWays=
 
+# Mac OS X deployment target (to cross-compile for older OS versions)
+#
+MACOS_DEPLOYMENT_VERSION = @MACOS_DEPLOYMENT_VERSION@
+MACOS_DEPLOYMENT_SDK = @MACOS_DEPLOYMENT_SDK@
+
 ################################################################################
 #
 # Variables that control how the compiler itself is built
@@ -864,6 +869,9 @@ GHC_STAGE3  = $(GHC_COMPILER_DIR)/stage3/ghc-inplace -no-user-package-conf
 # installed for this GHC version.  They are bound to be incompatible
 # with the packages we built in the tree.
 
+ifeq "$(stage)" "2"
+  UseStage1 = YES
+endif
 ifneq "$(findstring YES, $(UseStage1) $(BootingFromHc))" ""
 
 # We are using the stage1 compiler to compile Haskell code, set up