Limit unique_host_soname to just host modules

Change-Id: I41d050806a27473abb3788de43b7bf67f5d049a8
This commit is contained in:
Dan Willemsen 2016-07-22 13:40:59 -07:00
parent bdf3657991
commit 627d83db71

View file

@ -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"
}