python3: Centralize config file adjustments in Build/Install

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit b595362b85)
This commit is contained in:
Jeffery To
2023-06-29 16:13:52 +08:00
parent ae845a260c
commit b8d9ad62e0
2 changed files with 9 additions and 8 deletions

View File

@@ -24,9 +24,6 @@ define Py3Package/python3-dev/install
$(LN) python$(PYTHON3_VERSION)-config $(1)/usr/bin/python3-config
$(LN) python$(PYTHON3_VERSION)-config $(1)/usr/bin/python-config
$(LN) python$(PYTHON3_VERSION)/config-$(PYTHON3_VERSION)/libpython$(PYTHON3_VERSION).a $(1)/usr/lib/
# This depends on being called before filespec is processed
$(SED) 's|$(TARGET_AR)|ar|g;s|$(TARGET_CROSS)readelf|readelf|g;s|$(TARGET_CC)|gcc|g;s|$(TARGET_CXX)|g++|g' \
$(PKG_INSTALL_DIR)/usr/lib/python$(PYTHON3_VERSION)/config-$(PYTHON3_VERSION)/Makefile
endef
$(eval $(call Py3BasePackage,python3-dev, \