summaryrefslogtreecommitdiff
path: root/mk/config.mk.in
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-03-26 21:01:10 +0000
committerIan Lynagh <igloo@earth.li>2011-03-26 21:01:10 +0000
commit5c538c457d1215d7f5b5107ac808a24af805f870 (patch)
tree1e01fedd597f467046d3f0f8fb780bfadada5c2d /mk/config.mk.in
parentff903cd0515c0bd16281de142863a7f1acfa394b (diff)
downloadhaskell-5c538c457d1215d7f5b5107ac808a24af805f870.tar.gz
Fix the build on Windows (disable hsc2hs --cross-safe)
The .hsc files aren't currently safe for cross-compilation on Windows: libraries\haskeline\.\System\Console\Haskeline\Backend\Win32.hsc:160 directive "let" is not safe for cross-compilation
Diffstat (limited to 'mk/config.mk.in')
-rw-r--r--mk/config.mk.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in
index 948f805736..b478997b62 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -560,7 +560,12 @@ ifeq "$(TARGETPLATFORM)" "ia64-unknown-linux"
CONF_CC_OPTS += -G0
endif
+# The .hsc files aren't currently safe for cross-compilation on Windows:
+# libraries\haskeline\.\System\Console\Haskeline\Backend\Win32.hsc:160
+# directive "let" is not safe for cross-compilation
+ifneq "$(Windows)" "YES"
SRC_HSC2HS_OPTS += --cross-safe
+endif
SRC_HSC2HS_OPTS += $(addprefix --cflag=,$(filter-out -O,$(SRC_CC_OPTS) $(CONF_CC_OPTS_STAGE0)))
SRC_HSC2HS_OPTS += $(foreach d,$(GMP_INCLUDE_DIRS),-I$(d))