runkernel: sort out cargo rigmarole with rustc link arg

This commit is contained in:
Sebastien Bourdeauducq 2021-11-01 00:28:27 +08:00
parent b37cf6de08
commit da2886565b
3 changed files with 5 additions and 3 deletions

2
.cargo/config Normal file
View File

@ -0,0 +1,2 @@
[unstable]
extra-link-arg = true

View File

@ -1,3 +0,0 @@
[build]
rustflags = ["-C", "link-args=-rdynamic"]

3
runkernel/build.rs Normal file
View File

@ -0,0 +1,3 @@
fn main() {
println!("cargo:rustc-link-arg=-rdynamic");
}