From: Rosen Penev Date: Sat, 29 Jun 2024 19:06:24 +0000 (-0700) Subject: python3: remove rpath from host python X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=434cdf4a755258928caf76838cb82c85cf3b0db0;p=openwrt-packages.git python3: remove rpath from host python Everything relevant to python is now built statically. No need for rpath. Signed-off-by: Rosen Penev --- diff --git a/lang/python/python3-host.mk b/lang/python/python3-host.mk index 3cc20c2ce..ae34ba727 100644 --- a/lang/python/python3-host.mk +++ b/lang/python/python3-host.mk @@ -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)" diff --git a/lang/python/python3/Makefile b/lang/python/python3/Makefile index 71990893d..cd01fc9e4 100644 --- a/lang/python/python3/Makefile +++ b/lang/python/python3/Makefile @@ -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