diff options
Diffstat (limited to 'rust/compiler.go')
-rw-r--r-- | rust/compiler.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rust/compiler.go b/rust/compiler.go index 6b3ccfcfa..e0d89ac1d 100644 --- a/rust/compiler.go +++ b/rust/compiler.go @@ -362,7 +362,9 @@ func bionicDeps(ctx DepsContext, deps Deps, static bool) Deps { } else { deps.SharedLibs = append(deps.SharedLibs, bionicLibs...) } - + if ctx.RustModule().StaticExecutable() { + deps.StaticLibs = append(deps.StaticLibs, "libunwind") + } if libRuntimeBuiltins := config.BuiltinsRuntimeLibrary(ctx.toolchain()); libRuntimeBuiltins != "" { deps.StaticLibs = append(deps.StaticLibs, libRuntimeBuiltins) } |