# fix each-lib-rpath functionality · gitcafe/zig

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

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

Visibility: public

Requested revision: 55ac973953da88c3a108398849ee29f797c4ae52

Requested commit: 55ac973953da88c3a108398849ee29f797c4ae52

Commit: 55ac973953da88c3a108398849ee29f797c4ae52

Tree: b01c6bf6a399774ec39a057b1af93f03f82453f0

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
fix each-lib-rpath functionality

It was regressed in 2 ways from the merge of #6250:
 * it was not being enabled by default when the target OS is native.
 * we were testing the libfoo.so file path existence with bogus format
   string ('{}' instead of '{s}') and so it ended up being something
   like "libstd.HashMap(K,V,...).Entry.so" instead of "libfoo.so". Using
   {} rather than {s} is a footgun, be careful!

Previous functionality is now restored.

closes #6523

```

## Parents

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

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