summaryrefslogtreecommitdiff
path: root/rts/package.conf.in
diff options
context:
space:
mode:
authorSimon Marlow <simonmar@microsoft.com>2008-01-03 17:02:36 +0000
committerSimon Marlow <simonmar@microsoft.com>2008-01-03 17:02:36 +0000
commit5123ae93cfc5cdfcecc84340a9517580ad900d64 (patch)
treea5b25baa091a0932b9495737652f5ba90f76ca2b /rts/package.conf.in
parenta068566188bba9d808dfbe1b00c735b6c6952194 (diff)
downloadhaskell-5123ae93cfc5cdfcecc84340a9517580ad900d64.tar.gz
Optionally use libffi to implement 'foreign import "wrapper"' (#793)
To enable this, set UseLibFFI=YES in mk/build.mk. The main advantage here is that this reduces the porting effort for new platforms: libffi works on more architectures than our current adjustor code, and it is probably more heavily tested. We could potentially replace our existing code, but since it is probably faster than libffi (just a guess, I'll measure later) and is already working, it doesn't seem worthwhile. Right now, you must have libffi installed on your system. I used the one supplied by Debian/Ubuntu.
Diffstat (limited to 'rts/package.conf.in')
-rw-r--r--rts/package.conf.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/rts/package.conf.in b/rts/package.conf.in
index d57ef62039..187ae4056c 100644
--- a/rts/package.conf.in
+++ b/rts/package.conf.in
@@ -56,6 +56,9 @@ extra-libraries: "m" /* for ldexp() */
#if USE_PAPI
, "papi"
#endif
+#ifdef USE_LIBFFI
+ , "ffi"
+#endif
#ifdef INSTALLING
include-dirs: INCLUDE_DIR GMP_INCLUDE_DIRS