Don't put the $(TOP) path in the installed hsc2hs wrapper
authorIan Lynagh <igloo@earth.li>
Sat, 29 May 2010 11:24:09 +0000 (11:24 +0000)
committerIan Lynagh <igloo@earth.li>
Sat, 29 May 2010 11:24:09 +0000 (11:24 +0000)
ghc.mk

diff --git a/ghc.mk b/ghc.mk
index 7dec6a3..436cbc2 100644 (file)
--- a/ghc.mk
+++ b/ghc.mk
@@ -26,7 +26,9 @@ 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)) -I$(TOP)/includes"' >> "$(WRAPPER)"
 endef
-utils/hsc2hs_dist-install_SHELL_WRAPPER_EXTRA = $(utils/hsc2hs_dist_SHELL_WRAPPER_EXTRA)
+define utils/hsc2hs_dist-install_SHELL_WRAPPER_EXTRA
+echo 'HSC2HS_EXTRA="$(addprefix --cflag=,$(CONF_CC_OPTS)) $(addprefix --lflag=,$(CONF_LD_OPTS))"' >> "$(WRAPPER)"
+endef
 
 ifneq "$(BINDIST)" "YES"