X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=libffi%2FMakefile;h=d545a68157a60a1ae820ea1c109770f4e48281dc;hb=4cc1ed3b25dd2c565341665b3b4175dfdbc4328f;hp=3a7cb693f7b0ee2cdd40af6d73722a1547565654;hpb=e0fcf61dca4dfac99cb5417e1bc4cbee18822cf2;p=ghc-hetmet.git diff --git a/libffi/Makefile b/libffi/Makefile index 3a7cb69..d545a68 100644 --- a/libffi/Makefile +++ b/libffi/Makefile @@ -39,13 +39,11 @@ else BUILD_SHARED=no endif -boot :: stamp.ffi.static BINDIST_STAMPS = stamp.ffi.static INSTALL_HEADERS += ffi.h INSTALL_LIBS += libffi.a ifeq "$(BUILD_SHARED)" "yes" -boot :: stamp.ffi.shared BINDIST_STAMPS += stamp.ffi.shared INSTALL_LIBS += libffi.dll.a INSTALL_PROGS += libffi-3.dll @@ -53,11 +51,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 +73,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; \