]> xenbits.xensource.com Git - people/julieng/xen-unstable.git/commit
tools/Rules.mk: Properly handle libraries with recursive dependencies.
authorIan Campbell <ian.campbell@citrix.com>
Thu, 3 Dec 2015 11:22:01 +0000 (11:22 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 9 Dec 2015 12:36:59 +0000 (12:36 +0000)
commit78fb69ad932e012cd27ce9b5b7f8733d08b8061f
treeac0b4300c6ba30812520b23fc5bfd3af8c2a2869
parentb9fc6f36d54b5cbaad57e78e43a6763cbb802608
tools/Rules.mk: Properly handle libraries with recursive dependencies.

In tree libraries which link against other in tree libraries in a way
which is opaque to their callers need special handling, specifically
correct use of -Wl,-rpath-link for the recusively used libraries.

Currently this is rather simple, but up coming changes are going to
introduce transitive dependencies more than 1 step deep.

Introduce a SHDEPS idiom to contain all the recursive deps for a
library and include those in both LDLIBS (for linking) and SHLIB (for
recursive uses).

Try and document the whole thing.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/Rules.mk