Merge "Use the full path to the shared lib."
This commit is contained in:
commit
c2062f9c44
|
@ -385,8 +385,7 @@ func TransformObjToDynamicBinary(ctx android.ModuleContext,
|
||||||
if !strings.HasSuffix(file, flags.toolchain.ShlibSuffix()) {
|
if !strings.HasSuffix(file, flags.toolchain.ShlibSuffix()) {
|
||||||
panic("shared library " + lib.String() + " does not end with " + flags.toolchain.ShlibSuffix())
|
panic("shared library " + lib.String() + " does not end with " + flags.toolchain.ShlibSuffix())
|
||||||
}
|
}
|
||||||
libFlagsList = append(libFlagsList,
|
libFlagsList = append(libFlagsList, lib.String())
|
||||||
"-l"+strings.TrimSuffix(strings.TrimPrefix(file, "lib"), flags.toolchain.ShlibSuffix()))
|
|
||||||
ldDirs = append(ldDirs, dir)
|
ldDirs = append(ldDirs, dir)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue