summaryrefslogtreecommitdiff
path: root/libffi
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2010-07-23 22:30:59 +0000
committerIan Lynagh <igloo@earth.li>2010-07-23 22:30:59 +0000
commit30fad70245d9ddfae0b781460bc51468a01f92f6 (patch)
tree47fd8aaf1fd55b190c1e84f38a356b1c4cbbb6f7 /libffi
parentae8cc32e169e8d958f257714c1ae727e1a56a5e0 (diff)
downloadhaskell-30fad70245d9ddfae0b781460bc51468a01f92f6.tar.gz
Use different CC/LD options for different stages
Diffstat (limited to 'libffi')
-rw-r--r--libffi/ghc.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/libffi/ghc.mk b/libffi/ghc.mk
index f136600060..d8a3d27a5e 100644
--- a/libffi/ghc.mk
+++ b/libffi/ghc.mk
@@ -116,8 +116,8 @@ $(libffi_STAMP_CONFIGURE):
LD=$(LD) \
AR=$(AR) \
NM=$(NM) \
- CFLAGS="$(SRC_CC_OPTS) $(CONF_CC_OPTS) -w" \
- LDFLAGS="$(SRC_LD_OPTS) $(CONF_LD_OPTS) -w" \
+ CFLAGS="$(SRC_CC_OPTS) $(CONF_CC_OPTS_STAGE1) -w" \
+ LDFLAGS="$(SRC_LD_OPTS) $(CONF_LD_OPTS_STAGE1) -w" \
"$(SHELL)" configure \
--enable-static=yes \
--enable-shared=$(libffi_EnableShared) \
@@ -173,7 +173,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) -c empty.c -o HSffi.o
+ "$(CC)" $(SRC_CC_OPTS) $(CONF_CC_OPTS_STAGE1) -c empty.c -o HSffi.o
$(eval $(call all-target,libffi,libffi/dist-install/build/HSffi.o))