summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2015-12-31 11:31:58 +0200
committerHannu Nyman <hannu.nyman@iki.fi>2015-12-31 11:31:58 +0200
commitf5eabcbb17a1784513007ee88863338b136681bd (patch)
tree3b8b6bd86600fba0c78df19c3b1f8273398979f3 /lang/python
parent66af9657ba19c3b724ee5c5df664b51be19e6af4 (diff)
parent94578145cd5ad2168d56cb617103a2ebc48f1a15 (diff)
Merge pull request #2209 from jefferyto/python-sysroot-fix
python: fixed _python_sysroot paths
Diffstat (limited to 'lang/python')
-rw-r--r--lang/python/Makefile2
-rw-r--r--lang/python/files/python-host.mk6
2 files changed, 4 insertions, 4 deletions
diff --git a/lang/python/Makefile b/lang/python/Makefile
index f10c5cc99..c8936d226 100644
--- a/lang/python/Makefile
+++ b/lang/python/Makefile
@@ -12,7 +12,7 @@ include ./files/python-package.mk
PKG_NAME:=python
PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO)
-PKG_RELEASE:=2
+PKG_RELEASE:=3
PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://www.python.org/ftp/python/$(PKG_VERSION)
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"