python3: remove rpath from host python
authorRosen Penev <[email protected]>
Sat, 29 Jun 2024 19:06:24 +0000 (12:06 -0700)
committerRosen Penev <[email protected]>
Fri, 12 Jul 2024 20:10:49 +0000 (13:10 -0700)
Everything relevant to python is now built statically. No need for
rpath.

Signed-off-by: Rosen Penev <[email protected]>
lang/python/python3-host.mk
lang/python/python3/Makefile

index 3cc20c2cef0ed150241c48100ffb2a1dacdafc08..ae34ba7277bfbbdd8ae958388e1ae6b4a2ec6ca6 100644 (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)"
 
index 71990893dfca30cec711a69694cb43ce72b743c1..cd01fc9e41874c9f038b0b02145e4d80338132a3 100644 (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