mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-25 22:34:18 +08:00
Add LDFLAGS for linking nested libraries and helper for downloading gnu-config
This commit is contained in:
parent
974b6807c7
commit
c05194b3e9
@ -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> {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user