From 2c040edef819e08775a0ae1b461334a0b108319f Mon Sep 17 00:00:00 2001
From: Paul Sokolovsky <pfalcon@users.sourceforge.net>
Date: Mon, 19 Oct 2015 20:28:06 +0300
Subject: [PATCH] libffi: Skip building docs.

This requires makeinfo installed and wastes time (especially in CI).
---
 unix/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/unix/Makefile b/unix/Makefile
index 2a2736400..7245612f6 100644
--- a/unix/Makefile
+++ b/unix/Makefile
@@ -202,11 +202,14 @@ endif
 
 deplibs: libffi axtls
 
+# install-exec-recursive & install-data-am targets are used to avoid building
+# docs and depending on makeinfo
 libffi:
 	cd ../lib/libffi; git clean -d -x -f
 	cd ../lib/libffi; ./autogen.sh
 	mkdir -p ../lib/libffi/build_dir; cd ../lib/libffi/build_dir; \
-	../configure $(CROSS_COMPILE_HOST) --prefix=$$PWD/out CC="$(CC)" CXX="$(CXX)" LD="$(LD)"; make install
+	../configure $(CROSS_COMPILE_HOST) --prefix=$$PWD/out CC="$(CC)" CXX="$(CXX)" LD="$(LD)"; \
+	make install-exec-recursive; make -C include install-data-am
 
 axtls:
 	cd ../lib/axtls; cp config/upyconfig config/.config
-- 
GitLab