summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
authorPHO <pho@cielonegro.org>2011-12-06 23:15:35 +0900
committerPHO <pho@cielonegro.org>2011-12-08 10:57:28 +0900
commit616b669738e6ddaf0588957ad974b91944420983 (patch)
treeda71167eaa72a4649246e74a39908fc2a8b1140c /ghc.mk
parent3640d374f3501c0addb1be273ecc0f10f93be10d (diff)
downloadhaskell-616b669738e6ddaf0588957ad974b91944420983.tar.gz
Resurrect UseLibFFIForAdjustors from bitrot.
* Pass -Irts/dist/build to the C preprocessor to expose libffi headers (ffi.h and ffitarget.h) to foreign import wrappers during the building process of GHC itself. * Install libffi headers into $(ghcheaderdir) just like any other C headers. Otherwise an installed GHC can't find them when it wants to compile foreign import wrappers. * Include libffi headers in the bindist for the same reason.
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/ghc.mk b/ghc.mk
index 3dfb03f6fa..a2941d48b5 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -929,6 +929,7 @@ $(eval $(call bindist,.,\
$(includes_H_FILES) \
$(includes_DERIVEDCONSTANTS) \
$(includes_GHCCONSTANTS) \
+ $(libffi_HEADERS) \
$(INSTALL_LIBEXECS) \
$(INSTALL_LIBEXEC_SCRIPTS) \
$(INSTALL_TOPDIRS) \
@@ -1207,9 +1208,10 @@ maintainer-clean : distclean
.PHONY: all_libraries
.PHONY: bootstrapping-files
-bootstrapping-files: includes/ghcautoconf.h
-bootstrapping-files: includes/DerivedConstants.h
-bootstrapping-files: includes/GHCConstants.h
+bootstrapping-files: $(includes_H_CONFIG)
+bootstrapping-files: $(includes_DERIVEDCONSTANTS)
+bootstrapping-files: $(includes_GHCCONSTANTS)
+bootstrapping-files: $(libffi_HEADERS)
.DELETE_ON_ERROR: