# glibc: get correct files compiled into libc_nonshared.a · gitcafe/zig

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

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

Visibility: public

Requested revision: 7dcf7412c474c28deee5deeb21f109096fd9ec9e

Requested commit: 7dcf7412c474c28deee5deeb21f109096fd9ec9e

Commit: 7dcf7412c474c28deee5deeb21f109096fd9ec9e

Tree: bd9eec66e6e7d6961ecd724d65b6ccfcc96900cd

Author: Kang Seonghoon

Committer: Andrew Kelley

## Message

```
glibc: get correct files compiled into libc_nonshared.a

The scope of libc_nonshared.a was greatly changed in glibc 2.33 and
2.34, but only the change from 2.34 was reflected so far. Glibc 2.33
finally switched to versioned symbols for stat functions, meaning that
libc_nonshared.a no longer contains them since 2.33. Relevant files were
therefore reverted to 2.32 versions and renamed accordingly.

This commit also removes errno.c, which was probably added to
libc_nonshared.a based on a wrong assumption that glibc/include/errno.h
requires glibc/csu/errno.c. In reality errno.h should refer to
__libc_errno (not to be confused with the public __errno_location),
which should be imported from libc.so. The inclusion of errno.c resulted
in wrong compile options as well; this commit fixes them as well.

Fixes #16152

```

## Parents

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

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