Make cargo template dynamically linked

This commit is contained in:
Wildan M 2025-11-17 09:47:44 +07:00
parent 7f32e3f0e1
commit 3809f94aca
No known key found for this signature in database
GPG Key ID: 01AC53185C679C79
5 changed files with 21 additions and 5 deletions

View File

@ -2,4 +2,8 @@
git = "https://gitlab.redox-os.org/redox-os/profiled.git"
[build]
template = "cargo"
template = "custom"
script = """
# Must be statically linked
cookbook_cargo
"""

View File

@ -2,4 +2,8 @@
git = "https://gitlab.redox-os.org/redox-os/redoxfs.git"
[build]
template = "cargo"
template = "custom"
script = """
# Must be statically linked
cookbook_cargo
"""

View File

@ -2,4 +2,8 @@
git = "https://gitlab.redox-os.org/redox-os/exampled.git"
[build]
template = "cargo"
template = "custom"
script = """
# Must be statically linked
cookbook_cargo
"""

View File

@ -1,4 +1,8 @@
[source]
git = "https://gitlab.redox-os.org/redox-os/redox-fatfs.git"
[build]
template = "cargo"
template = "custom"
script = """
# Must be statically linked
cookbook_cargo
"""

View File

@ -298,7 +298,7 @@ pub fn build(
cargoflags,
} => {
format!(
"PACKAGE_PATH={} cookbook_cargo {cargoflags}",
"DYNAMIC_INIT\nPACKAGE_PATH={} cookbook_cargo {cargoflags}",
package_path.as_deref().unwrap_or(".")
)
}