# Revert "Never implicitly add rpaths for each lib dir, add NixOS libdir to rpath" · gitcafe/zig

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

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

Visibility: public

Requested revision: ae2cd5fe263e9d8ddd5719b4795f9cd39b5c0324

Requested commit: ae2cd5fe263e9d8ddd5719b4795f9cd39b5c0324

Commit: ae2cd5fe263e9d8ddd5719b4795f9cd39b5c0324

Tree: 49058ce872193ded1dc4a3a37fe4c5295f1f18f9

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Revert "Never implicitly add rpaths for each lib dir, add NixOS libdir to rpath"

This reverts commit d7b73af8f65bb891c8700ed47777144bb6f35fe1.

I did not look at this closely enough. This is incorrect; it should not
implicitly add rpaths for every library, and it should not disable the
nice default of each_lib_path when compiling for the native OS.

See #16062 where we are working on a follow-up improvement to this.

```

## Parents

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

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