summaryrefslogtreecommitdiff
path: root/rules/distdir-opts.mk
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2014-12-07 16:55:26 +0100
committerHerbert Valerio Riedel <hvr@gnu.org>2014-12-07 16:58:43 +0100
commit030ece4ee0ef22f85a7b105b86dc102408a0df0f (patch)
treed825924a8bee2969da9e9218c6431cbc85389a75 /rules/distdir-opts.mk
parentd62957682d72c939e26cf0a29bf0c68726399c20 (diff)
downloadhaskell-030ece4ee0ef22f85a7b105b86dc102408a0df0f.tar.gz
Add -I$1/$2/build/autogen to $1_$2_DIST_CC_OPTS
This is closer to how `cabal` behaves and is required for cbits to be able to `#include "cabal_macros.h"`
Diffstat (limited to 'rules/distdir-opts.mk')
-rw-r--r--rules/distdir-opts.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/rules/distdir-opts.mk b/rules/distdir-opts.mk
index a252ce77f5..3126a8832e 100644
--- a/rules/distdir-opts.mk
+++ b/rules/distdir-opts.mk
@@ -51,6 +51,7 @@ $1_$2_DIST_GCC_CC_OPTS = \
$1_$2_DIST_CC_OPTS = \
$$(SRC_CC_OPTS) \
$$($1_CC_OPTS) \
+ -I$1/$2/build/autogen \
$$(foreach dir,$$(filter-out /%,$$($1_$2_INCLUDE_DIRS)),-I$1/$$(dir)) \
$$(foreach dir,$$(filter /%,$$($1_$2_INCLUDE_DIRS)),-I$$(dir)) \
$$($1_$2_CC_OPTS) \