commit | 627d83db71a40081fcb88cd955a5952fe5a384d6 | [log] [tgz] |
---|---|---|
author | Dan Willemsen <dwillemsen@google.com> | Fri Jul 22 13:40:59 2016 -0700 |
committer | Dan Willemsen <dwillemsen@google.com> | Fri Jul 22 13:41:24 2016 -0700 |
tree | fcacce90db9877a4269204a3ad4af9b74997f6f4 | |
parent | bdf36579911b1e1dd4f8897276dc804ae6f63401 [diff] [blame] |
Limit unique_host_soname to just host modules Change-Id: I41d050806a27473abb3788de43b7bf67f5d049a8
diff --git a/cc/cc.go b/cc/cc.go index 6054bc4..51760fc 100644 --- a/cc/cc.go +++ b/cc/cc.go
@@ -1611,7 +1611,7 @@ 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" }