# zld: permit system static libs · gitcafe/zig

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

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

Visibility: public

Requested revision: 2b0d322ea003907dc2111864cea259e5e0043328

Requested commit: 2b0d322ea003907dc2111864cea259e5e0043328

Commit: 2b0d322ea003907dc2111864cea259e5e0043328

Tree: 8707c105b098f8e1aa504cc3adcaeaaf4cfdf244

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
zld: permit system static libs

This commits permits passing in static archives using the system
lib flag `-la`. With this commit, `zig ld` will now look firstly for
a dynamic library (which always takes precedence), and will fall back
on `liba.a` if the dylib is not found. The static archive is searched
for in the system lib search dirs like the dylibs.

```

## Parents

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

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