summaryrefslogtreecommitdiff
path: root/libffi
diff options
context:
space:
mode:
Diffstat (limited to 'libffi')
-rw-r--r--libffi/ghc.mk9
1 files changed, 6 insertions, 3 deletions
diff --git a/libffi/ghc.mk b/libffi/ghc.mk
index 187e9eb001..0394d1d389 100644
--- a/libffi/ghc.mk
+++ b/libffi/ghc.mk
@@ -119,10 +119,13 @@ $(libffi_STAMP_CONFIGURE):
PATH=`pwd`:$$PATH; \
export PATH; \
cd build && \
- CC=$(WhatGccIsCalled) $(SHELL) configure \
- --enable-static=yes \
+ CC=$(WhatGccIsCalled) \
+ CFLAGS="$(SRC_CC_OPTS)" \
+ LDFLAGS="$(SRC_LD_OPTS)" \
+ $(SHELL) configure \
+ --enable-static=yes \
--enable-shared=$(libffi_EnableShared) \
- --host=$(PLATFORM) --build=$(PLATFORM)
+ --host=$(PLATFORM) --build=$(PLATFORM)
# libffi.so needs to be built with the correct soname.
# NOTE: this builds libffi_convience.so with the incorrect