Merge "Always respect system_shared_libs from Android.bp"
This commit is contained in:
@@ -240,11 +240,11 @@ func (linker *baseLinker) linkerDeps(ctx DepsContext, deps Deps) Deps {
|
|||||||
deps.LateStaticLibs = append(deps.LateStaticLibs, "libgcc")
|
deps.LateStaticLibs = append(deps.LateStaticLibs, "libgcc")
|
||||||
}
|
}
|
||||||
|
|
||||||
var systemSharedLibs []string
|
systemSharedLibs := linker.Properties.System_shared_libs
|
||||||
if !ctx.useSdk() && !ctx.useVndk() {
|
|
||||||
systemSharedLibs = linker.Properties.System_shared_libs
|
|
||||||
}
|
|
||||||
if systemSharedLibs == nil {
|
if systemSharedLibs == nil {
|
||||||
|
// Provide a default system_shared_libs if it is unspecified. Note: If an
|
||||||
|
// empty list [] is specified, it implies that the module declines the
|
||||||
|
// default system_shared_libs.
|
||||||
systemSharedLibs = []string{"libc", "libm", "libdl"}
|
systemSharedLibs = []string{"libc", "libm", "libdl"}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user