diff --git a/cc/library.go b/cc/library.go index b664a5ecb..d53bcfcb9 100644 --- a/cc/library.go +++ b/cc/library.go @@ -733,7 +733,8 @@ func (library *libraryDecorator) install(ctx ModuleContext, file android.Path) { library.baseInstaller.install(ctx, file) } - if Bool(library.Properties.Static_ndk_lib) && library.static() { + if Bool(library.Properties.Static_ndk_lib) && library.static() && + !ctx.useVndk() && ctx.Device() { installPath := getNdkSysrootBase(ctx).Join( ctx, "usr/lib", ctx.toolchain().ClangTriple(), file.Base())