summaryrefslogtreecommitdiff
path: root/libffi/ghc.mk
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-04-23 13:40:52 +0100
committerIan Lynagh <igloo@earth.li>2011-04-23 13:40:52 +0100
commitf845e5f8339ead4b7189d5d1af6d882593af5dcc (patch)
treefb4b11ec5d464fbc1711855bdb7eca617edacde9 /libffi/ghc.mk
parent83e504bb061ff9dca79d72c92ed25a8d245d4cd9 (diff)
downloadhaskell-f845e5f8339ead4b7189d5d1af6d882593af5dcc.tar.gz
Make stage-specific CC variables
This allows different gcc's to be used when building different stages, which we need to do when cross-compiling.
Diffstat (limited to 'libffi/ghc.mk')
-rw-r--r--libffi/ghc.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/libffi/ghc.mk b/libffi/ghc.mk
index 1efb8fb420..46400ab43e 100644
--- a/libffi/ghc.mk
+++ b/libffi/ghc.mk
@@ -114,7 +114,7 @@ $(libffi_STAMP_CONFIGURE):
PATH=`pwd`:$$PATH; \
export PATH; \
cd build && \
- CC=$(WhatGccIsCalled) \
+ CC=$(CC_STAGE1) \
LD=$(LD) \
AR=$(AR) \
NM=$(NM) \
@@ -177,7 +177,7 @@ $(eval $(call all-target,libffi,$(INSTALL_HEADERS) $(INSTALL_LIBS)))
libffi/dist-install/build/HSffi.o: libffi/dist-install/build/libHSffi.a
cd libffi/dist-install/build && \
touch empty.c && \
- "$(CC)" $(SRC_CC_OPTS) $(CONF_CC_OPTS_STAGE1) -c empty.c -o HSffi.o
+ "$(CC_STAGE1)" $(SRC_CC_OPTS) $(CONF_CC_OPTS_STAGE1) -c empty.c -o HSffi.o
$(eval $(call all-target,libffi,libffi/dist-install/build/HSffi.o))