Limit unique_host_soname to just host modules
am: 627d83db71
Change-Id: Icb02c8a0965dea7e34d64fe08c84418029c7304d
This commit is contained in:
commit
808b3eb021
1 changed files with 1 additions and 1 deletions
2
cc/cc.go
2
cc/cc.go
|
@ -1611,7 +1611,7 @@ func (library *libraryLinker) props() []interface{} {
|
|||
func (library *libraryLinker) getLibName(ctx ModuleContext) string {
|
||||
name := ctx.ModuleName()
|
||||
|
||||
if Bool(library.Properties.Unique_host_soname) {
|
||||
if ctx.Host() && Bool(library.Properties.Unique_host_soname) {
|
||||
if !strings.HasSuffix(name, "-host") {
|
||||
name = name + "-host"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue