From 51031bf32cb2dc1772ae7730c0245112da430951 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Thu, 21 May 2009 16:02:10 +0000 Subject: [PATCH] Pass CFLAGS and LDFLAGS to libffi's configure --- libffi/ghc.mk | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/libffi/ghc.mk b/libffi/ghc.mk index 187e9eb0..0394d1d 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 -- 1.7.10.4