# std.build.LibExeObjStep: better handle transitive deps · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/7ea3937c5a6f63557db99c8a8f7b3f6d3de8c38b)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 7ea3937c5a6f63557db99c8a8f7b3f6d3de8c38b

Requested commit: 7ea3937c5a6f63557db99c8a8f7b3f6d3de8c38b

Commit: 7ea3937c5a6f63557db99c8a8f7b3f6d3de8c38b

Tree: c972e12f5eeb56d9865089af79fa8edff8dff93e

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.build.LibExeObjStep: better handle transitive deps

 * no longer repeat -lc on the linker line redundantly
 * when using linkLibrary() with a static library, it will now also put
   the static library's static library dependencies on the linker line,
   recursively.
 * refactor out a common pattern to an addFlag function

```

## Parents

- [74b72a766de96c7c70fc8a02d3e2ee3cd353f225](https://git.cafe/gitcafe/zig/commit/74b72a766de96c7c70fc8a02d3e2ee3cd353f225?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/7ea3937c5a6f63557db99c8a8f7b3f6d3de8c38b?format=markdown)
