summaryrefslogtreecommitdiff
path: root/libffi
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-11-08 17:54:25 +0000
committerIan Lynagh <igloo@earth.li>2011-11-08 18:11:24 +0000
commitf647fd53a9cfe8e6de07f334c9c024365c8181a4 (patch)
treecdcd50399718d45ccf9ad41942bef717d8f6b0b0 /libffi
parentefcbe14df849dc1acc810253f4e0c725bb2d7a12 (diff)
downloadhaskell-f647fd53a9cfe8e6de07f334c9c024365c8181a4.tar.gz
Fix the libffi ln handling on cygwin
iWe were adding c:/... to $PATH, but : is the separator in $PATH.
Diffstat (limited to 'libffi')
-rw-r--r--libffi/ghc.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/libffi/ghc.mk b/libffi/ghc.mk
index a693bcb44e..48c71bc8ce 100644
--- a/libffi/ghc.mk
+++ b/libffi/ghc.mk
@@ -34,6 +34,10 @@ endif
libffi_STATIC_LIB = libffi/build/inst/lib/libffi.a
ffi_HEADER = rts/dist/build/ffi.h
+ifeq "$(OSTYPE)" "cygwin"
+LIBFFI_PATH_MANGLE = PATH=$$(cygpath "$(TOP)")/libffi:$$PATH; export PATH;
+endif
+
ifneq "$(BINDIST)" "YES"
$(libffi_STAMP_CONFIGURE):
"$(RM)" $(RM_OPTS) $(libffi_STAMP_STATIC_CONFIGURE)
@@ -54,8 +58,7 @@ $(libffi_STAMP_CONFIGURE):
# Because -Werror may be in SRC_CC_OPTS/SRC_LD_OPTS, we need to turn
# warnings off or the compilation of libffi might fail due to warnings
cd libffi && \
- PATH=$(TOP)/libffi:$$PATH; \
- export PATH; \
+ $(LIBFFI_PATH_MANGLE) \
cd build && \
CC=$(CC_STAGE1) \
LD=$(LD) \