diff options
author | Simon Marlow <marlowsd@gmail.com> | 2009-11-12 09:45:14 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2009-11-12 09:45:14 +0000 |
commit | 51b5bc7d63cd9decadba83e1da874a9768f2ccaf (patch) | |
tree | 073f28b82771a4dbc938bbf757faa69c41e9fb42 /ghc.mk | |
parent | c8b84d15cea2869977a1248701f5ffa47e48d33e (diff) | |
download | haskell-51b5bc7d63cd9decadba83e1da874a9768f2ccaf.tar.gz |
HC bootstrapping fix: add -I$(GHC_INCLUDE_DIR) to SRC_CC_OPTS
And add a comment explaining why these options are here
Diffstat (limited to 'ghc.mk')
-rw-r--r-- | ghc.mk | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1060,7 +1060,13 @@ publish-sdist : endif ifeq "$(BootingFromHc)" "YES" -SRC_CC_OPTS += -DNO_REGS -DUSE_MINIINTERPRETER -D__GLASGOW_HASKELL__=$(ProjectVersionInt) +# In a normal build we use GHC to compile C files (see +# rules/c-suffix-rules.mk), which passes a number of its own options +# to the C compiler. So when bootstrapping we have to provide these +# flags explicitly to C compilations. +SRC_CC_OPTS += -DNO_REGS -DUSE_MINIINTERPRETER +SRC_CC_OPTS += -D__GLASGOW_HASKELL__=$(ProjectVersionInt) +SRC_CC_OPTS += -I$(GHC_INCLUDE_DIR) endif # ----------------------------------------------------------------------------- |