Commit b3bcf51f authored by Simon Marlow's avatar Simon Marlow
Browse files

FIX BUILD (Windows): Copy the ln trick used by the GMP build

parent 31478ab9
......@@ -53,11 +53,16 @@ endif
install all :: $(INSTALL_HEADERS) $(INSTALL_LIBS) $(INSTALL_PROGS)
# We have to fake a non-working ln for configure, so that the fallback
# option (cp -p) gets used instead. Otherwise the libffi build system
# will use cygwin symbolic linkks which cannot be read by mingw gcc.
# The same trick is played by the GMP build in ../gmp.
stamp.ffi.static:
$(RM) -rf $(LIBFFI_DIR) build
$(TAR) -zxf $(LIBFFI_TARBALL)
mv $(LIBFFI_DIR) build
# chmod +x ln
chmod +x ln
(set -o igncr 2>/dev/null) && set -o igncr; export SHELLOPTS; \
PATH=`pwd`:$$PATH; \
export PATH; \
......@@ -70,7 +75,7 @@ stamp.ffi.shared:
$(RM) -rf $(LIBFFI_DIR) build-shared
$(TAR) -zxf $(LIBFFI_TARBALL)
mv $(LIBFFI_DIR) build-shared
# chmod +x ln
chmod +x ln
(set -o igncr 2>/dev/null) && set -o igncr; export SHELLOPTS; \
PATH=`pwd`:$$PATH; \
export PATH; \
......
#!/bin/sh
exit 1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment