# std.zig.system.NativeTargetInfo: handle missing DT_RUNPATH · gitcafe/zig

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

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

Visibility: public

Requested revision: c668396941f19a5c015014822d980bbe9f2bc585

Requested commit: c668396941f19a5c015014822d980bbe9f2bc585

Commit: c668396941f19a5c015014822d980bbe9f2bc585

Tree: 659e3bbd754cdf453f1e716de667474275265853

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.zig.system.NativeTargetInfo: handle missing DT_RUNPATH

This commit removes the check that takes advantage of when the dynamic
linker is a symlink. Instead, it falls back on the same directory as the
dynamic linker as a de facto runpath. Empirically, this gives correct
results on Gentoo and NixOS.

Unfortunately it is still falling short for Debian, which has libc.so.6
in a different directory as the dynamic linker.

```

## Parents

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

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