summaryrefslogtreecommitdiff
path: root/rules/package-config.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2010-03-14 17:20:18 +0000
committerIan Lynagh <igloo@earth.li>2010-03-14 17:20:18 +0000
commit0f183f73e2ad22b2a2225a388d024e0559862c66 (patch)
treebd80d05a26aa7d009d4614e236b168f7b3ba085d /rules/package-config.mk
parent63dd4db64df2949448ceef1adb3c885c3ebb03b9 (diff)
downloadhaskell-0f183f73e2ad22b2a2225a388d024e0559862c66.tar.gz
When compiling with GHC >= 6.13, use -rtsopts
Diffstat (limited to 'rules/package-config.mk')
-rw-r--r--rules/package-config.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/rules/package-config.mk b/rules/package-config.mk
index 726a4414ad..5dff483062 100644
--- a/rules/package-config.mk
+++ b/rules/package-config.mk
@@ -18,6 +18,9 @@ $1_$2_HC = $$(GHC_STAGE$3)
# configuration stuff that depends on which GHC we're building with
ifeq "$3" "0"
$1_$2_ghc_ge_609 = $$(ghc_ge_609)
+$1_$2_ghc_ge_6102 = $$(ghc_ge_6102)
+$1_$2_ghc_ge_611 = $$(ghc_ge_611)
+$1_$2_ghc_ge_613 = $$(ghc_ge_613)
$1_$2_HC_CONFIG = $$(GHC_STAGE0)
$1_$2_HC_CONFIG_DEP =
$1_$2_GHC_PKG = $$(GHC_PKG)
@@ -30,8 +33,14 @@ $1_$2_HC_DEP =
$1_$2_HC_PKGCONF = -package-conf $$(BOOTSTRAPPING_CONF)
$1_$2_GHC_PKG_OPTS = --package-conf=$$(BOOTSTRAPPING_CONF)
$1_$2_CONFIGURE_OPTS += --package-db=$$(TOP)/$$(BOOTSTRAPPING_CONF)
+ifeq "$(ghc_ge_613)" "YES"
+$1_$2_HC_OPTS += -rtsopts
+endif
else
$1_$2_ghc_ge_609 = YES
+$1_$2_ghc_ge_6102 = YES
+$1_$2_ghc_ge_611 = YES
+$1_$2_ghc_ge_613 = YES
$1_$2_HC_PKGCONF =
$1_$2_HC_CONFIG = $$(TOP)/$$(DUMMY_GHC_INPLACE)
$1_$2_HC_CONFIG_DEP = $$(DUMMY_GHC_INPLACE)
@@ -44,6 +53,7 @@ $1_$2_HC_MK_DEPEND = $$(GHC_STAGE1)
$1_$2_HC_MK_DEPEND_DEP = $$($1_$2_HC_MK_DEPEND)
$1_$2_HC_DEP = $$($1_$2_HC)
$1_$2_HC_OPTS += -no-user-package-conf
+$1_$2_HC_OPTS += -rtsopts
endif
# Useful later