From e731a3ab528c12c718b10520701d7e6b75c01f18 Mon Sep 17 00:00:00 2001 From: Anhad Singh Date: Sun, 9 Feb 2025 18:53:21 +1100 Subject: [PATCH] feat(cargo): dynamic Signed-off-by: Anhad Singh --- recipes/dev/cargo/recipe.toml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/recipes/dev/cargo/recipe.toml b/recipes/dev/cargo/recipe.toml index 71834b919..8fa7121b7 100644 --- a/recipes/dev/cargo/recipe.toml +++ b/recipes/dev/cargo/recipe.toml @@ -13,6 +13,7 @@ dependencies = [ "zlib", ] script = """ +DYNAMIC_INIT export LIBSSH2_SYS_USE_PKG_CONFIG=1 export LIBZ_SYS_STATIC=1 export DEP_NGHTTP2_ROOT="${COOKBOOK_SYSROOT}" @@ -29,3 +30,14 @@ export DEP_Z_ROOT="${COOKBOOK_SYSROOT}" mkdir -pv "${COOKBOOK_STAGE}/bin" cp -v "target/${TARGET}/release/cargo" "${COOKBOOK_STAGE}/bin/cargo" """ + +[package] +shared-deps = [ + "libgcc", + "curl", + "libssh2", + "nghttp2", + "openssl1", + "zlib", +] +