summaryrefslogtreecommitdiff
path: root/lang/python/files/python-package.mk
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2015-03-16 17:53:51 +0100
committerSteven Barth <steven@midlink.org>2015-03-16 17:53:51 +0100
commite6a900d03186dfe6538be396d95df4d96cca2a79 (patch)
tree1b6ae5170a2122ef742fd6e0bb23449ca2affbb0 /lang/python/files/python-package.mk
parent6aa5742fb56f68d326c7f689d629f1d68772fe1e (diff)
parenta5d784de0b8c50d9dc0684879ed7a26687f5c060 (diff)
Merge pull request #1043 from sairon/python-package-extra-configure-args
python: added configure args for distutils path detection
Diffstat (limited to 'lang/python/files/python-package.mk')
-rw-r--r--lang/python/files/python-package.mk7
1 files changed, 7 insertions, 0 deletions
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)