# stage2: no condition on system libs to link native libc · gitcafe/zig

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

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

Visibility: public

Requested revision: aec0e595f2a679f10e927ea4531b8f58ced7080a

Requested commit: aec0e595f2a679f10e927ea4531b8f58ced7080a

Commit: aec0e595f2a679f10e927ea4531b8f58ced7080a

Tree: e1ec39679ef8636cbac1ad541892fd59b8a92543

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: no condition on system libs to link native libc

Before, Zig tried to use its own libc files (e.g. glibc) when there were
no system libs being linked. This prevented building against native
glibc on systems that have newer glibc than the ones Zig provides.

Closes #12797

```

## Parents

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

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