summaryrefslogtreecommitdiff
path: root/rts
diff options
context:
space:
mode:
Diffstat (limited to 'rts')
-rw-r--r--rts/ghc.mk11
1 files changed, 3 insertions, 8 deletions
diff --git a/rts/ghc.mk b/rts/ghc.mk
index 25a1561814..5bd830da6f 100644
--- a/rts/ghc.mk
+++ b/rts/ghc.mk
@@ -489,15 +489,10 @@ endif
endif
# add CFLAGS for libffi
-ifeq "$(UseSystemLibFFI)" "YES"
-LIBFFI_CFLAGS = $(addprefix -I,$(FFIIncludeDir))
-else
-LIBFFI_CFLAGS =
-endif
# ffi.h triggers prototype warnings, so disable them here:
-rts/Interpreter_CC_OPTS += -Wno-strict-prototypes $(LIBFFI_CFLAGS)
-rts/Adjustor_CC_OPTS += -Wno-strict-prototypes $(LIBFFI_CFLAGS)
-rts/sm/Storage_CC_OPTS += -Wno-strict-prototypes $(LIBFFI_CFLAGS)
+rts/Interpreter_CC_OPTS += -Wno-strict-prototypes
+rts/Adjustor_CC_OPTS += -Wno-strict-prototypes
+rts/sm/Storage_CC_OPTS += -Wno-strict-prototypes
# ffi.h triggers undefined macro warnings on PowerPC, disable those:
# this matches substrings of powerpc64le, including "powerpc" and "powerpc64"
ifneq "$(findstring $(TargetArch_CPP), powerpc64le)" ""