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 {