summaryrefslogtreecommitdiff
path: root/rules/manual-package-config.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2012-01-08 19:36:14 +0000
committerIan Lynagh <igloo@earth.li>2012-01-08 23:11:06 +0000
commit9e452874df05f5f98243576ffaefc2f356358038 (patch)
treebad3b659234883643d088b48034a6bd99e2b851f /rules/manual-package-config.mk
parent4c49eb512499255fe7de0e6cfc08ed138957d583 (diff)
downloadhaskell-9e452874df05f5f98243576ffaefc2f356358038.tar.gz
Refactoring
This is working towards being able to put ghcautoconf.h and ghcplatform.h in includes/dist
Diffstat (limited to 'rules/manual-package-config.mk')
-rw-r--r--rules/manual-package-config.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules/manual-package-config.mk b/rules/manual-package-config.mk
index 6f350dcac0..848fe1b4ce 100644
--- a/rules/manual-package-config.mk
+++ b/rules/manual-package-config.mk
@@ -19,7 +19,7 @@ $1/package.conf.inplace : $1/package.conf.in $(GHC_PKG_INPLACE)
$$(CPP) $$(RAWCPP_FLAGS) -P \
-DTOP='"$$(TOP)"' \
$$($1_PACKAGE_CPP_OPTS) \
- -x c -I$$(GHC_INCLUDE_DIR) $$< -o $$@.raw
+ -x c $$(addprefix -I,$$(GHC_INCLUDE_DIRS)) $$< -o $$@.raw
grep -v '^#pragma GCC' $$@.raw | \
sed -e 's/""//g' -e 's/:[ ]*,/: /g' > $$@
@@ -34,7 +34,7 @@ $1/package.conf.install:
-DLIB_DIR='"$$(if $$(filter YES,$$(RelocatableBuild)),$$$$topdir,$$(ghclibdir))"' \
-DINCLUDE_DIR='"$$(if $$(filter YES,$$(RelocatableBuild)),$$$$topdir,$$(ghclibdir))/include"' \
$$($1_PACKAGE_CPP_OPTS) \
- -x c -I$$(GHC_INCLUDE_DIR) $1/package.conf.in -o $$@.raw
+ -x c $$(addprefix -I,$$(GHC_INCLUDE_DIRS)) $1/package.conf.in -o $$@.raw
grep -v '^#pragma GCC' $$@.raw | \
sed -e 's/""//g' -e 's/:[ ]*,/: /g' >$$@