From da2886565bb82b42d96e6bbc18468434ebcc7180 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 1 Nov 2021 00:28:27 +0800 Subject: [PATCH] runkernel: sort out cargo rigmarole with rustc link arg --- .cargo/config | 2 ++ runkernel/.cargo/config | 3 --- runkernel/build.rs | 3 +++ 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 .cargo/config delete mode 100644 runkernel/.cargo/config create mode 100644 runkernel/build.rs diff --git a/.cargo/config b/.cargo/config new file mode 100644 index 00000000..ac01e73c --- /dev/null +++ b/.cargo/config @@ -0,0 +1,2 @@ +[unstable] +extra-link-arg = true diff --git a/runkernel/.cargo/config b/runkernel/.cargo/config deleted file mode 100644 index a12e0fb8..00000000 --- a/runkernel/.cargo/config +++ /dev/null @@ -1,3 +0,0 @@ -[build] -rustflags = ["-C", "link-args=-rdynamic"] - diff --git a/runkernel/build.rs b/runkernel/build.rs new file mode 100644 index 00000000..538285b1 --- /dev/null +++ b/runkernel/build.rs @@ -0,0 +1,3 @@ +fn main() { + println!("cargo:rustc-link-arg=-rdynamic"); +}