summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mk/install.mk.in2
-rw-r--r--rts/package.conf.in2
-rw-r--r--rules/manual-package-config.mk4
3 files changed, 4 insertions, 4 deletions
diff --git a/mk/install.mk.in b/mk/install.mk.in
index 0856805285..7b146e7bed 100644
--- a/mk/install.mk.in
+++ b/mk/install.mk.in
@@ -103,7 +103,7 @@ endif
ghclibexecdir = $(ghclibdir)
topdir = $(ghclibdir)
-ghcheaderdir = $(ghclibdir)/include
+ghcheaderdir = $(ghclibdir)/rts/include
#-----------------------------------------------------------------------------
# install configuration
diff --git a/rts/package.conf.in b/rts/package.conf.in
index 69ee9ba54d..46103e49b9 100644
--- a/rts/package.conf.in
+++ b/rts/package.conf.in
@@ -18,7 +18,7 @@ hidden-modules:
import-dirs:
#if defined(INSTALLING)
-library-dirs: LIB_DIR"/rts" FFI_LIB_DIR LIBDW_LIB_DIR
+library-dirs: LIB_DIR FFI_LIB_DIR LIBDW_LIB_DIR
#else /* !INSTALLING */
library-dirs: TOP"/rts/dist-install/build" FFI_LIB_DIR LIBDW_LIB_DIR
#endif
diff --git a/rules/manual-package-config.mk b/rules/manual-package-config.mk
index 3905c437ac..72c3a369b6 100644
--- a/rules/manual-package-config.mk
+++ b/rules/manual-package-config.mk
@@ -37,8 +37,8 @@ $1/$2/package.conf.inplace : $1/package.conf.in $$$$(ghc-pkg_INPLACE) | $$$$(dir
$1/$2/package.conf.install : $1/package.conf.in | $$$$(dir $$$$@)/.
$$(HS_CPP) -P \
-DINSTALLING \
- -DLIB_DIR='"$$(if $$(filter YES,$$(RelocatableBuild)),$$$$topdir,$$(ghclibdir))"' \
- -DINCLUDE_DIR='"$$(if $$(filter YES,$$(RelocatableBuild)),$$$$topdir,$$(ghclibdir))/include"' \
+ -DLIB_DIR='"$$(if $$(filter YES,$$(RelocatableBuild)),$$$$topdir,$$(ghclibdir))/$1"' \
+ -DINCLUDE_DIR='"$$(if $$(filter YES,$$(RelocatableBuild)),$$$$topdir,$$(ghclibdir))/$1/include"' \
$$($1_PACKAGE_CPP_OPTS) \
$$(addprefix -I,$$(GHC_INCLUDE_DIRS)) \
-I$$(BUILD_$3_INCLUDE_DIR) \