summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-10-03 19:57:00 +0000
committerIan Lynagh <igloo@earth.li>2008-10-03 19:57:00 +0000
commite0bb6c24c6d59bf8c79148506feac25513dbd468 (patch)
tree2bd2dbbc256e78c1316b97434708ee7dac701307
parent6949d66c042df3a848fb9759604494f306903d20 (diff)
downloadhaskell-e0bb6c24c6d59bf8c79148506feac25513dbd468.tar.gz
Fix a build problem with GHC 6.4.2
-rw-r--r--compiler/Makefile.local5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/Makefile.local b/compiler/Makefile.local
index 1d5345114b..27f65ef4be 100644
--- a/compiler/Makefile.local
+++ b/compiler/Makefile.local
@@ -23,6 +23,11 @@ GHC_OPTS += $(GhcStage$(stage)HcOpts)
GHC_OPTS += $(addprefix -optc, $(MACOSX_DEPLOYMENT_CC_OPTS))
LIB_LD_OPTS += $(addprefix -optl, $(MACOSX_DEPLOYMENT_LD_OPTS))
+# Work around a bug "splitTyConApp e1{tv a2iZ}" in 6.4.2:
+ifeq "$(ghc_ge_605)" "NO"
+dist-stage1/build/IOEnv.o: GHC_OPTS += -O0
+endif
+
# XXX These didn't work in the old build system, according to the
# comment at least. We should actually handle them properly at some
# point: