summaryrefslogtreecommitdiff
path: root/lang/python/python3
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2019-06-10 08:37:57 -0700
committerGitHub <noreply@github.com>2019-06-10 08:37:57 -0700
commit15fba58d0bacde5d84e09903af5b6d8d2ae49ff2 (patch)
treed6e0f5095994dc6c03539ba99f9731a63bd27db6 /lang/python/python3
parent76ec2891e37b71513f9fc1b7cc9dce2deb14ec03 (diff)
parent64959a1dd07b40e3757eed100f6580f151a9adc4 (diff)
Merge pull request #9199 from jefferyto/python-config-staging-dir-host
python,python3: Move python-config to $(STAGING_DIR)/host
Diffstat (limited to 'lang/python/python3')
-rw-r--r--lang/python/python3/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/lang/python/python3/Makefile b/lang/python/python3/Makefile
index 11ee77f09..34ba31fb0 100644
--- a/lang/python/python3/Makefile
+++ b/lang/python/python3/Makefile
@@ -209,7 +209,7 @@ endef
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib $(1)/usr/lib/pkgconfig
- $(INSTALL_DIR) $(1)/usr/bin
+ $(INSTALL_DIR) $(2)/bin
$(CP) \
$(PKG_INSTALL_DIR)/usr/include/python$(PYTHON_VERSION) \
$(1)/usr/include/
@@ -222,7 +222,10 @@ define Build/InstallDev
$(1)/usr/lib/pkgconfig
$(INSTALL_BIN) \
$(PKG_INSTALL_DIR)/usr/bin/python$(PYTHON_VERSION)-config \
- $(1)/usr/bin/
+ $(2)/bin/
+ $(SED) \
+ 's|^prefix_real=.*$$$$|prefix_real="$(PYTHON3_DIR)"|' \
+ $(2)/bin/python$(PYTHON_VERSION)-config
endef
PYTHON3_BASE_LIB_FILES:= \