Merge "Use the full path to the shared lib."

This commit is contained in:
Treehugger Robot 2016-07-21 18:45:19 +00:00 committed by Gerrit Code Review
commit c2062f9c44
1 changed files with 1 additions and 2 deletions

View File

@ -385,8 +385,7 @@ func TransformObjToDynamicBinary(ctx android.ModuleContext,
if !strings.HasSuffix(file, flags.toolchain.ShlibSuffix()) {
panic("shared library " + lib.String() + " does not end with " + flags.toolchain.ShlibSuffix())
}
libFlagsList = append(libFlagsList,
"-l"+strings.TrimSuffix(strings.TrimPrefix(file, "lib"), flags.toolchain.ShlibSuffix()))
libFlagsList = append(libFlagsList, lib.String())
ldDirs = append(ldDirs, dir)
}