From e6ca2d4ac1e3d86bd93e5884fbae03151c708862 Mon Sep 17 00:00:00 2001 From: Manuel M T Chakravarty Date: Thu, 17 Sep 2009 13:27:06 +0000 Subject: Use CONF_CC_OPTS - Needed to get arch-dependent options, eg, on Snow Leopard --- libffi/ghc.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libffi') diff --git a/libffi/ghc.mk b/libffi/ghc.mk index ae41881f09..d3e57be93a 100644 --- a/libffi/ghc.mk +++ b/libffi/ghc.mk @@ -122,8 +122,8 @@ $(libffi_STAMP_CONFIGURE): export PATH; \ cd build && \ CC=$(WhatGccIsCalled) \ - CFLAGS="$(SRC_CC_OPTS) -w" \ - LDFLAGS="$(SRC_LD_OPTS) -w" \ + CFLAGS="$(SRC_CC_OPTS) $(CONF_CC_OPTS) -w" \ + LDFLAGS="$(SRC_LD_OPTS) $(CONF_LD_OPTS) -w" \ "$(SHELL)" configure \ --enable-static=yes \ --enable-shared=$(libffi_EnableShared) \ @@ -168,7 +168,7 @@ $(eval $(call all-target,libffi,libffi/libHSffi.a libffi/libHSffi_p.a)) libffi/HSffi.o: libffi/libHSffi.a cd libffi && \ touch empty.c; \ - "$(CC)" $(SRC_CC_OPTS) -c empty.c -o HSffi.o + "$(CC)" $(SRC_CC_OPTS) $(CONF_CC_OPTS) -c empty.c -o HSffi.o $(eval $(call all-target,libffi,libffi/HSffi.o)) -- cgit v1.2.1