diff --git a/cc/cc.go b/cc/cc.go index 6054bc4c2..51760fca1 100644 --- a/cc/cc.go +++ b/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" }