summaryrefslogtreecommitdiff
path: root/libffi
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2009-05-21 16:02:10 +0000
committerIan Lynagh <igloo@earth.li>2009-05-21 16:02:10 +0000
commit51031bf32cb2dc1772ae7730c0245112da430951 (patch)
tree152afdef683c838c4a074af43d5accf16000572a /libffi
parent46d2e100dc2e232f5d76ff9fc6a3f11e07d383ce (diff)
downloadhaskell-51031bf32cb2dc1772ae7730c0245112da430951.tar.gz
Pass CFLAGS and LDFLAGS to libffi's configure
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