# cli: let the linker resolve libs into dynamic and static · gitcafe/zig

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

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

Visibility: public

Requested revision: eadac4763135717ace3a7809ec5d6413b1699fcd

Requested commit: eadac4763135717ace3a7809ec5d6413b1699fcd

Commit: eadac4763135717ace3a7809ec5d6413b1699fcd

Tree: ab7faff3a1d789c71dd7d50efae65ba41fdecaf3

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
cli: let the linker resolve libs into dynamic and static

Unlike targeting ELF-based OSes such as Linux, resolving system libs
on Darwin should follow one of two strategies: `-search_paths_first`
or `-search_dylibs_first` and hence we defer always forcing linking
a static library to the linker.

```

## Parents

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

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