Add crtbegin_so/crtend_so to Bionic Rust libraries.

Bug: 153430438
Test: Example library no longer experiences linkage errors during build.
Change-Id: I73870a68693415b37c9b7bf051b1879bcb8df0c6
This commit is contained in:
Ivan Lozano 2020-04-07 13:19:44 -04:00
parent 1c5d4fe4f7
commit 12ee9cac91
1 changed files with 2 additions and 0 deletions

View File

@ -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