mirror of
https://github.com/openwrt/packages.git
synced 2025-12-19 00:51:19 +00:00
python,python3: Move python-config to $(STAGING_DIR)/host
Build/InstallDev is passed a second argument, a path where host binaries should be placed (ultimately $(STAGING_DIR)/host). This change moves python[3]-config to that directory. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
@@ -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:= \
|
||||
|
||||
Reference in New Issue
Block a user