Merge "Add crtbegin_so/crtend_so to Bionic Rust libraries."
This commit is contained in:
commit
526291abe4
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue