mirror of
https://github.com/openwrt/packages.git
synced 2025-12-23 10:14:32 +04:00
python3: Fix readelf program name not replaced in _sysconfigdata.py
The Makefile lines to add READELF to TARGET_CONFIGURE_OPTS was removed in4e05541782. Without setting READELF, configure finds the symlink to $(TARGET_CROSS)readelf (e.g. arm-openwrt-linux-readelf) instead of $(TARGET_CROSS)readelf (e.g. arm-openwrt-linux-muslgnueabi-readelf). This leads to the symlink name being saved to _sysconfigdata.py, and so the readelf name is not replaced correctly (in Py3Package/python3-base/install). This restores the removed Makefile lines. Fixes:4e05541782("python3: bump to version 3.10.0") Signed-off-by: Jeffery To <jeffery.to@gmail.com> (cherry picked from commite1a9578635, adjusted PKG_RELEASE) Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
@@ -11,7 +11,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
include ../python3-version.mk
|
include ../python3-version.mk
|
||||||
|
|
||||||
PKG_NAME:=python3
|
PKG_NAME:=python3
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=4
|
||||||
PKG_VERSION:=$(PYTHON3_VERSION).$(PYTHON3_VERSION_MICRO)
|
PKG_VERSION:=$(PYTHON3_VERSION).$(PYTHON3_VERSION_MICRO)
|
||||||
|
|
||||||
PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
|
||||||
@@ -135,6 +135,11 @@ define Package/python3/description
|
|||||||
It's python3-light + all other packages.
|
It's python3-light + all other packages.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
# Set READELF here so that the exact same readelf program name can be
|
||||||
|
# replaced in _sysconfigdata.py (in Py3Package/python3-base/install)
|
||||||
|
TARGET_CONFIGURE_OPTS+= \
|
||||||
|
READELF="$(TARGET_CROSS)readelf"
|
||||||
|
|
||||||
EXTRA_LDFLAGS+= \
|
EXTRA_LDFLAGS+= \
|
||||||
-L$(PKG_BUILD_DIR) \
|
-L$(PKG_BUILD_DIR) \
|
||||||
-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib
|
-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib
|
||||||
|
|||||||
Reference in New Issue
Block a user