summaryrefslogtreecommitdiff
path: root/libffi/ghc.mk
diff options
context:
space:
mode:
authorMoritz Angermann <moritz.angermann@gmail.com>2017-05-11 21:12:34 +0800
committerMoritz Angermann <moritz.angermann@gmail.com>2017-05-11 21:12:34 +0800
commita67cfc790256884be9ce784b1439556308db3c53 (patch)
treea635077752bfbb3027bb7b26d9115920ffe74729 /libffi/ghc.mk
parentc0872bf99ff891e440f118bf9eea20b980c2cfca (diff)
downloadhaskell-a67cfc790256884be9ce784b1439556308db3c53.tar.gz
Revert "libffi via submodule"
This reverts commit 8d4bce42de7929b0dec7e7d68e66bcfc4d266322.
Diffstat (limited to 'libffi/ghc.mk')
-rw-r--r--libffi/ghc.mk9
1 files changed, 5 insertions, 4 deletions
diff --git a/libffi/ghc.mk b/libffi/ghc.mk
index 08f5e4d40a..7c5bc9e1b3 100644
--- a/libffi/ghc.mk
+++ b/libffi/ghc.mk
@@ -50,8 +50,9 @@ $(libffi_STAMP_CONFIGURE): $(TOUCH_DEP)
$(call removeFiles,$(libffi_STAMP_STATIC_SHARED_CONFIGURE))
$(call removeFiles,$(libffi_STAMP_STATIC_SHARED_BUILD))
$(call removeFiles,$(libffi_STAMP_STATIC_SHARED_INSTALL))
- git clean -x -f -d libffi/build
- cd libffi/build && ./autogen.sh
+ $(call removeTrees,$(LIBFFI_DIR) libffi/build)
+ cat libffi-tarballs/libffi*.tar.gz | $(GZIP_CMD) -d | { cd libffi && $(TAR_CMD) -xf - ; }
+ mv libffi/libffi-* libffi/build
# update config.guess/config.sub
$(CP) "$(TOP)/config.guess" libffi/build/config.guess
@@ -122,10 +123,10 @@ $(libffi_STATIC_LIB): $(libffi_STAMP_INSTALL)
@test -f $@ || { echo "$< exists, but $@ does not."; echo "Suggest removing $<."; exit 1; }
$(libffi_HEADERS): $(libffi_STAMP_INSTALL) | $$(dir $$@)/.
- cp -f libffi/build/inst/include/$(notdir $@) $@
+ cp -f libffi/build/inst/lib/libffi-*/include/$(notdir $@) $@
$(eval $(call clean-target,libffi,, \
- $(wildcard libffi/stamp.ffi.*) libffi/dist-install))
+ libffi/build $(wildcard libffi/stamp.ffi.*) libffi/dist-install))
endif