feat(cargo): dynamic

Signed-off-by: Anhad Singh <andypython@protonmail.com>
This commit is contained in:
Anhad Singh 2025-02-09 18:53:21 +11:00
parent 9042d5ebd4
commit e731a3ab52
No known key found for this signature in database
GPG Key ID: 80E0357347554B89

View File

@ -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",
]