Limit unique_host_soname to just host modules am: 627d83db71 am: 808b3eb021

am: a146a72924

Change-Id: If2017f926686668929890244775a456195d95282
This commit is contained in:
Dan Willemsen
2016-07-22 21:44:43 +00:00
committed by android-build-merger

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