Fix the in-tree hsc2hs
authorIan Lynagh <igloo@earth.li>
Fri, 8 Jan 2010 12:52:52 +0000 (12:52 +0000)
committerIan Lynagh <igloo@earth.li>
Fri, 8 Jan 2010 12:52:52 +0000 (12:52 +0000)
It only had a -I flag for an inplace directory that doesn't exist.
Now it also has one for the in-tree $(TOP)/includes.

ghc.mk

diff --git a/ghc.mk b/ghc.mk
index 28f7c85..7dec6a3 100644 (file)
--- a/ghc.mk
+++ b/ghc.mk
@@ -24,7 +24,7 @@ utils/hsc2hs_dist-install_HC_OPTS += -DNEW_GHC_LAYOUT
 utils/hsc2hs_template=$(INPLACE_TOPDIR)/template-hsc.h
 
 define utils/hsc2hs_dist_SHELL_WRAPPER_EXTRA
-echo 'HSC2HS_EXTRA="$(addprefix --cflag=,$(CONF_CC_OPTS)) $(addprefix --lflag=,$(CONF_LD_OPTS))"' >> "$(WRAPPER)"
+echo 'HSC2HS_EXTRA="$(addprefix --cflag=,$(CONF_CC_OPTS)) $(addprefix --lflag=,$(CONF_LD_OPTS)) -I$(TOP)/includes"' >> "$(WRAPPER)"
 endef
 utils/hsc2hs_dist-install_SHELL_WRAPPER_EXTRA = $(utils/hsc2hs_dist_SHELL_WRAPPER_EXTRA)