# std.zig.system.NativeTargetInfo: add fallback check · gitcafe/zig

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

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

Visibility: public

Requested revision: c7d6048081053c2852d4d3af5d549d83473f808c

Requested commit: c7d6048081053c2852d4d3af5d549d83473f808c

Commit: c7d6048081053c2852d4d3af5d549d83473f808c

Tree: 8211b4014b632b53673d7d48fca5663d1890156e

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.zig.system.NativeTargetInfo: add fallback check

After failing to find RUNPATH in the ELF of /usr/bin/env, not finding
the answer in a symlink of the dynamic interpreter, and not finding
libc.so.6 in the same directory as the dynamic interpreter, Zig will
check `/lib/$triple`.

This fixes incorrect native glibc version detected on Debian bookworm.

```

## Parents

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

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