summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2012-11-29 23:52:07 +0000
committerIan Lynagh <ian@well-typed.com>2012-11-30 01:31:39 +0000
commitc793cc35a0959a3e68ab09802e2c978750e94ace (patch)
tree22dc4ceb82660a13776d43cd7cb028fa49504937 /compiler
parent3005e90936c47c1f71672bf6c84fff20cb14014b (diff)
downloadhaskell-c793cc35a0959a3e68ab09802e2c978750e94ace.tar.gz
libffi build system tweaks
Diffstat (limited to 'compiler')
-rw-r--r--compiler/ghc.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/ghc.mk b/compiler/ghc.mk
index 887f91b280..0e53ca5e62 100644
--- a/compiler/ghc.mk
+++ b/compiler/ghc.mk
@@ -500,7 +500,10 @@ $(foreach way,$$(compiler_stage3_WAYS),\
compiler/prelude/PrimOp_HC_OPTS += -fforce-recomp
# LibFFI.hs #includes ffi.h
+ifneq "$(UseSystemLibFFI)" "YES"
compiler/stage2/build/LibFFI.hs : $(libffi_HEADERS)
+endif
+
# On Windows it seems we also need to link directly to libffi
ifeq "$(HostOS_CPP)" "mingw32"
define windowsDynLinkToFfi