Add system shared library dependencies to Android.mk
We were missing dependencies from the prebuilts to the system shared
libraries, which could cause libc to not be installed if only soong
modules were built.
Change-Id: Ie5c237d7be23c6170e8b586b013f6456a8462230
diff --git a/cc/cc.go b/cc/cc.go
index ad01b73..64ac50f 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -850,7 +850,8 @@
deps := c.deps(ctx)
- c.Properties.AndroidMkSharedLibs = append([]string(nil), deps.SharedLibs...)
+ c.Properties.AndroidMkSharedLibs = append(c.Properties.AndroidMkSharedLibs, deps.SharedLibs...)
+ c.Properties.AndroidMkSharedLibs = append(c.Properties.AndroidMkSharedLibs, deps.LateSharedLibs...)
if ctx.sdk() {
version := "." + ctx.sdkVersion()