mirror of
https://github.com/openwrt/packages.git
synced 2025-12-26 11:16:31 +04:00
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:
@@ -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)"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user