summaryrefslogtreecommitdiff
path: root/rules/distdir-way-opts.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-04-27 00:19:09 +0100
committerIan Lynagh <igloo@earth.li>2011-04-27 00:19:09 +0100
commit78d8681a39e2bd4a8e35b921a37cd77f4c94c8e2 (patch)
tree2649ee6e40e52090c2203cfd88f186868f2d2a8a /rules/distdir-way-opts.mk
parent23eb4e4c18b01e367a2a9a5e13fb2a06bb662ec7 (diff)
downloadhaskell-78d8681a39e2bd4a8e35b921a37cd77f4c94c8e2.tar.gz
Build system: Tell hsc2hs where to find cabal_macros.h
Diffstat (limited to 'rules/distdir-way-opts.mk')
-rw-r--r--rules/distdir-way-opts.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules/distdir-way-opts.mk b/rules/distdir-way-opts.mk
index 494e1712d9..5c56169dc5 100644
--- a/rules/distdir-way-opts.mk
+++ b/rules/distdir-way-opts.mk
@@ -134,6 +134,8 @@ $1_$2_$3_ALL_HSC2HS_OPTS = \
--cflag=-D__GLASGOW_HASKELL__=$$(ProjectVersionInt) \
$$($1_$2_$3_HSC2HS_CC_OPTS) \
$$($1_$2_$3_HSC2HS_LD_OPTS) \
+ --cflag=-I$1/$2/build/autogen \
+ $$(if $$($1_PACKAGE),--cflag=-include --cflag=$1/$2/build/autogen/cabal_macros.h) \
$$($$(basename $$<)_HSC2HS_OPTS) \
$$(EXTRA_HSC2HS_OPTS)