# zld: refactor order of searching for the dylibs · gitcafe/zig

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

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

Visibility: public

Requested revision: ca772735c3d01c58551639d8bcfe355bc7ac9785

Requested commit: ca772735c3d01c58551639d8bcfe355bc7ac9785

Commit: ca772735c3d01c58551639d8bcfe355bc7ac9785

Tree: 9c8bc1edfb70fbff9ac1734a3536ca5056e8aa63

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
zld: refactor order of searching for the dylibs

Current assumed order is:
* cwd
* `self.base.options.lib_dirs`
* finally, if `self.base.options.syslibroot` is defined,
  `self.base.options.lib_dirs` prefixed with syslibroot

```

## Parents

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

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