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

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

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

Visibility: public

Requested revision: 5293bdfe636a619a460ca547cc9e4dfa254d7d42

Requested commit: 5293bdfe636a619a460ca547cc9e4dfa254d7d42

Commit: 5293bdfe636a619a460ca547cc9e4dfa254d7d42

Tree: 61fcf7f858689d5f3bf6040ee69be2d0cd32bd6b

Author: Kang Seonghoon

Committer: Andrew Kelley

## Message

```
glibc patch: 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.

```

## Parents

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

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