Add order-only dependency on shared libraries

Improve the dependency accuracy by adding an order-only dependency
on the shared library alongside the existing depenency on the
table of contents file.  The dependency won't cause the module
to be rebuilt when the the shared library changes, but will allow
anything using the ninja graph for sandboxing to know the dependency
exists.

Test: manual
Change-Id: I3accbcabee62fa0ad3eb3d1aaedc5a4bffe27308
This commit is contained in:
Colin Cross 2021-05-13 17:45:36 -07:00
parent e070c3a26b
commit 58dd6a92e5
1 changed files with 1 additions and 0 deletions

View File

@ -804,6 +804,7 @@ func transformObjToDynamicBinary(ctx android.ModuleContext,
ImplicitOutputs: implicitOutputs, ImplicitOutputs: implicitOutputs,
Inputs: objFiles, Inputs: objFiles,
Implicits: deps, Implicits: deps,
OrderOnly: sharedLibs,
Args: args, Args: args,
}) })
} }