X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=libffi%2FMakefile;h=bd9e65882fe860c63ae0ab813f6ac619698cf72e;hp=3a7cb693f7b0ee2cdd40af6d73722a1547565654;hb=b0ca990457eaf7991e72b13d0040d937b5759b36;hpb=e0fcf61dca4dfac99cb5417e1bc4cbee18822cf2 diff --git a/libffi/Makefile b/libffi/Makefile index 3a7cb69..bd9e658 100644 --- a/libffi/Makefile +++ b/libffi/Makefile @@ -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; \