summaryrefslogtreecommitdiff
path: root/libffi
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-07-03 00:16:16 +0100
committerIan Lynagh <ian@well-typed.com>2013-07-03 12:13:57 +0100
commitc548fec4f11920244e81b9f83ebb2aaf7d08ba40 (patch)
tree29130a609525530f0e95ad581546a5ae9eaa2846 /libffi
parent448b981844da83c98d378448c063a0c11e7ff839 (diff)
downloadhaskell-c548fec4f11920244e81b9f83ebb2aaf7d08ba40.tar.gz
Change the ranlib detection
On Windows, the ranlib in the path may not be the right ranlib (it may be the 32bit ranlib when we are making a Win64 compiler, or vice-versa). Therefore we can't leave it up to libffi to detect the right ranlib, but need to tell it which ranlib to use. This means that we need to find ranlib even if we don't actually need it ourselves.
Diffstat (limited to 'libffi')
-rw-r--r--libffi/ghc.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/libffi/ghc.mk b/libffi/ghc.mk
index ffef273ce3..d761a43a47 100644
--- a/libffi/ghc.mk
+++ b/libffi/ghc.mk
@@ -86,6 +86,7 @@ $(libffi_STAMP_CONFIGURE): $(TOUCH_DEP)
LD=$(LD) \
AR=$(AR_STAGE1) \
NM=$(NM) \
+ RANLIB=$(REAL_RANLIB_CMD) \
CFLAGS="$(SRC_CC_OPTS) $(CONF_CC_OPTS_STAGE1) -w" \
LDFLAGS="$(SRC_LD_OPTS) $(CONF_GCC_LINKER_OPTS_STAGE1) -w" \
"$(SHELL)" ./configure \