diff options
author | 2020-04-07 13:19:44 -0400 | |
---|---|---|
committer | 2020-04-07 13:19:44 -0400 | |
commit | 12ee9cac911f331078495a747cd28bf1aa75ef04 (patch) | |
tree | 018d70e986f52a31d2f28a6c515269e65f877ba1 /rust/library.go | |
parent | 1c5d4fe4f7a00d4604e7db3258048e9b3f5878d1 (diff) |
Add crtbegin_so/crtend_so to Bionic Rust libraries.
Bug: 153430438
Test: Example library no longer experiences linkage errors during build.
Change-Id: I73870a68693415b37c9b7bf051b1879bcb8df0c6
Diffstat (limited to 'rust/library.go')
-rw-r--r-- | rust/library.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rust/library.go b/rust/library.go index 0cf2dd045..bf863bb67 100644 --- a/rust/library.go +++ b/rust/library.go @@ -318,6 +318,8 @@ func (library *libraryDecorator) compilerDeps(ctx DepsContext, deps Deps) Deps { if ctx.toolchain().Bionic() && (library.dylib() || library.shared()) { deps = library.baseCompiler.bionicDeps(ctx, deps) + deps.CrtBegin = "crtbegin_so" + deps.CrtEnd = "crtend_so" } return deps |