Add LDFLAGS for linking nested libraries and helper for downloading gnu-config

This commit is contained in:
Wildan Mubarok 2025-07-22 10:15:50 +00:00
parent 974b6807c7
commit c05194b3e9

View File

@ -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<SourceRecipe>) -> Result<PathBuf, String> {