# Fix duplicate LC_RPATH entries on macOS Tahoe · gitcafe/zig

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

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

Visibility: public

Requested revision: c15f8b9fc97e141bb59f7d11c3bf4ad76a5036ed

Requested commit: c15f8b9fc97e141bb59f7d11c3bf4ad76a5036ed

Commit: c15f8b9fc97e141bb59f7d11c3bf4ad76a5036ed

Tree: 29340fa4af53dd5202dd35ac56b0755ec56f26d9

Author: Frank Denis

Committer: Alex Rønne Petersen

## Message

```
Fix duplicate LC_RPATH entries on macOS Tahoe

When building on macOS Tahoe, binaries were getting duplicate LC_RPATH
load commands which caused dyld to refuse to run them with a
"duplicate LC_RPATH" error that has become a hard error.

The duplicates occurred when library directories were being added
to rpath_list twice:

- from lib_directories
- from native system paths detection which includes the same dirs

```

## Parents

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

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