From c05194b3e9d72d8cac941757dda7a4240bd2b652 Mon Sep 17 00:00:00 2001 From: Wildan Mubarok Date: Tue, 22 Jul 2025 10:15:50 +0000 Subject: [PATCH] Add LDFLAGS for linking nested libraries and helper for downloading gnu-config --- src/bin/cook.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bin/cook.rs b/src/bin/cook.rs index 8198bfd62..6a2364de3 100644 --- a/src/bin/cook.rs +++ b/src/bin/cook.rs @@ -208,9 +208,14 @@ function DYNAMIC_INIT { # TODO: check paths for spaces export LDFLAGS="-L${COOKBOOK_SYSROOT}/lib" + export LDFLAGS="-Wl,-rpath-link,${COOKBOOK_SYSROOT}/lib $LDFLAGS" export RUSTFLAGS="-C target-feature=-crt-static" export COOKBOOK_DYNAMIC=1 } + +function GNU_CONFIG_GET { + wget -O "$1" "https://gitlab.redox-os.org/redox-os/gnu-config/-/raw/master/config.sub?inline=false" +} "#; fn fetch_offline(recipe_dir: &Path, source: &Option) -> Result {