commit 4e3ae81b0c5688e174d91790a7bc057f149c69bb
parent 441dd131d04604911142fb9ffa6da60ce797dded
Author: Jeffery To <jeffery.to@gmail.com>
Date: Sun, 6 Mar 2016 19:09:13 +0800
python: use external libffi for host python
This will ensure that ctypes will use the same version of libffi as
other packages, e.g. python-cffi.
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lang/python/Makefile b/lang/python/Makefile
@@ -29,7 +29,7 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/Python-$(PKG_VERSION)
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/Python-$(PKG_VERSION)
PKG_BUILD_DEPENDS:=python/host
-HOST_BUILD_DEPENDS:=bzip2/host expat/host
+HOST_BUILD_DEPENDS:=bzip2/host expat/host libffi/host
include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/package.mk
@@ -223,6 +223,7 @@ HOST_CONFIGURE_ARGS+= \
--with-threads \
--prefix=$(STAGING_DIR)/host/usr \
--with-system-expat=$(STAGING_DIR)/host \
+ --with-system-ffi="$(STAGING_DIR)/host" \
--with-ensurepip=upgrade \
CONFIG_SITE= \
CFLAGS="$(HOST_CFLAGS)"