From 627d83db71a40081fcb88cd955a5952fe5a384d6 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Fri, 22 Jul 2016 13:40:59 -0700 Subject: [PATCH] Limit unique_host_soname to just host modules Change-Id: I41d050806a27473abb3788de43b7bf67f5d049a8 --- cc/cc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" }