summaryrefslogtreecommitdiff
path: root/lang/python/files/python-host.mk
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2015-12-30 22:20:22 +0800
committerJeffery To <jeffery.to@gmail.com>2015-12-31 11:55:12 +0800
commit94578145cd5ad2168d56cb617103a2ebc48f1a15 (patch)
tree47ced4d1ab296b59718a61cdb445b0e2224f504c /lang/python/files/python-host.mk
parentad987faf15041c220a906f8c627269aad0194a78 (diff)
python: fixed _python_sysroot paths
AFAIK sysroot is combined with prefix/exec_prefix, so sysroot shouldn't include "/usr". (cf. the HostPython function in older versions of python-package.mk) Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Diffstat (limited to 'lang/python/files/python-host.mk')
-rw-r--r--lang/python/files/python-host.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/lang/python/files/python-host.mk b/lang/python/files/python-host.mk
index 17038d14d..b2ed33683 100644
--- a/lang/python/files/python-host.mk
+++ b/lang/python/files/python-host.mk
@@ -13,10 +13,10 @@ HOST_PYTHONPATH:=$(HOST_PYTHON_LIB_DIR):$(STAGING_DIR_HOST)/$(HOST_PYTHON_PKG_DI
define HostPython
if [ "$(strip $(3))" == "HOST" ]; then \
export PYTHONPATH="$(HOST_PYTHONPATH)"; \
- export _python_sysroot="$(STAGING_DIR_HOST)/usr"; \
+ export _python_sysroot="$(STAGING_DIR_HOST)"; \
else \
export PYTHONPATH="$(PYTHONPATH)"; \
- export _python_sysroot="$(STAGING_DIR)/usr"; \
+ export _python_sysroot="$(STAGING_DIR)"; \
fi; \
export PYTHONOPTIMIZE=""; \
export PYTHONDONTWRITEBYTECODE=1; \
@@ -29,7 +29,7 @@ endef
# These configure args are needed in detection of path to Python header files
# using autotools.
HOST_CONFIGURE_ARGS += \
- _python_sysroot="$(STAGING_DIR_HOST)/usr" \
+ _python_sysroot="$(STAGING_DIR_HOST)" \
_python_prefix="/usr" \
_python_exec_prefix="/usr"