mirror of
https://github.com/openwrt/packages.git
synced 2025-12-23 05:54:33 +04:00
python-setuptools-rust: Set cargo profile from environment variable
This adds a patch (submitted upstream in https://github.com/PyO3/setuptools-rust/pull/364), to read the profile to pass to cargo from an environment variable. This also updates the Python include files to set the environment variable based on values from rust-values.mk. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
@@ -78,7 +78,8 @@ HOST_PYTHON3_VARS = \
|
||||
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" \
|
||||
$(CARGO_HOST_CONFIG_VARS)
|
||||
$(CARGO_HOST_CONFIG_VARS) \
|
||||
SETUPTOOLS_RUST_CARGO_PROFILE="$(CARGO_HOST_PROFILE)"
|
||||
|
||||
# $(1) => directory of python script
|
||||
# $(2) => python script and its arguments
|
||||
|
||||
Reference in New Issue
Block a user