python3: remove rpath from host python

Everything relevant to python is now built statically. No need for
rpath.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2024-06-29 12:06:24 -07:00
parent 8aac7a78a9
commit 434cdf4a75
2 changed files with 1 additions and 12 deletions

View File

@@ -77,7 +77,7 @@ HOST_PYTHON3_VARS = \
LDSHARED="$(HOSTCC) -shared" \
CFLAGS="$(HOST_CFLAGS)" \
CPPFLAGS="$(HOST_CPPFLAGS) -I$(HOST_PYTHON3_INC_DIR)" \
LDFLAGS="$(HOST_LDFLAGS) -lpython$(PYTHON3_VERSION) -Wl$(comma)-rpath$(comma)$(STAGING_DIR_HOSTPKG)/lib" \
LDFLAGS="$(HOST_LDFLAGS) -lpython$(PYTHON3_VERSION)" \
$(CARGO_HOST_CONFIG_VARS) \
SETUPTOOLS_RUST_CARGO_PROFILE="$(CARGO_HOST_PROFILE)"

View File

@@ -284,17 +284,6 @@ endef
Py3Package/python3-light/install:=:
Package/python3/install:=:
# libuuid is provided by util-linux and pkgconfig does not work properly with
# tools. Add the necessary includes manually.
# $(STAGING_DIR_HOST)/include/uuid
HOST_CFLAGS += \
-I$(STAGING_DIR_HOST)/include/uuid
HOST_CPPFLAGS += \
-I$(STAGING_DIR_HOST)/include/uuid
HOST_LDFLAGS += \
-Wl$(comma)-rpath$(comma)$(STAGING_DIR_HOSTPKG)/lib
ifeq ($(HOST_OS),Linux)
HOST_LDFLAGS += \
-Wl,--no-as-needed -lrt