From a5d784de0b8c50d9dc0684879ed7a26687f5c060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C4=8Cerm=C3=A1k?= Date: Mon, 16 Mar 2015 10:41:33 +0100 Subject: [PATCH] python: added configure args for distutils path detection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit python-package.mk now defines (extends) CONFIGURE_ARGS that are adjusting PREFIX and EXEC_PREFIX in distutils.sysconfig during compilation. These variables are sometimes used by autotools to detect path to Python header files. Adding these variables to python-package.mk fixes compilation of legacy autotools-configured packages that already include python-package.mk and do not overwrite CONFIGURE_ARGS. Signed-off-by: Jan Čermák Cc: Alexandru Ardelean --- lang/python/files/python-package.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lang/python/files/python-package.mk b/lang/python/files/python-package.mk index 6936a0748..4895b91a1 100644 --- a/lang/python/files/python-package.mk +++ b/lang/python/files/python-package.mk @@ -33,6 +33,13 @@ define HostPython ) endef +# These configure args are needed in detection of path to Python header files +# using autotools. +CONFIGURE_ARGS += \ + _python_sysroot="$(STAGING_DIR)" \ + _python_prefix="/usr" \ + _python_exec_prefix="/usr" + PKG_USE_MIPS16:=0 # This is required in addition to PKG_USE_MIPS16:=0 because otherwise MIPS16 # flags are inherited from the Python base package (via sysconfig module)