# fix logic for choosing when dynamic linking is required · gitcafe/zig

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

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

Visibility: public

Requested revision: 819625d2740838ad10440f4af04200a38b5c65e2

Requested commit: 819625d2740838ad10440f4af04200a38b5c65e2

Commit: 819625d2740838ad10440f4af04200a38b5c65e2

Tree: b2fbe9a4c38d7debe0af61d6c6709a8998b8eabe

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
fix logic for choosing when dynamic linking is required

When building object files or static libraries, link_mode can still be
static even if the OS needs libc for syscalls.

```

## Parents

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

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