summaryrefslogtreecommitdiff
path: root/mk/config.mk.in
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-03-23 21:16:51 +0000
committerIan Lynagh <igloo@earth.li>2011-03-23 21:16:51 +0000
commit4a2a508bb6adf33f9f3e99baa85f73f0fc18c832 (patch)
tree6be59cf25fc00f2303c26cb075b0a726e0c006b8 /mk/config.mk.in
parent90d7a88f304ddff15f31f9b1edb86b452679583b (diff)
downloadhaskell-4a2a508bb6adf33f9f3e99baa85f73f0fc18c832.tar.gz
Document new hsc2hs flags, and use the --cross-safe flag when we're compiling
Patch from Brian Bloniarz
Diffstat (limited to 'mk/config.mk.in')
-rw-r--r--mk/config.mk.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/mk/config.mk.in b/mk/config.mk.in
index 4204c7b5f5..948f805736 100644
--- a/mk/config.mk.in
+++ b/mk/config.mk.in
@@ -560,6 +560,7 @@ ifeq "$(TARGETPLATFORM)" "ia64-unknown-linux"
CONF_CC_OPTS += -G0
endif
+SRC_HSC2HS_OPTS += --cross-safe
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))