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

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

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

Visibility: public

Requested revision: bc921fec122f4fa9e9a3957657c6ee74d6870f5b

Requested commit: bc921fec122f4fa9e9a3957657c6ee74d6870f5b

Commit: bc921fec122f4fa9e9a3957657c6ee74d6870f5b

Tree: 0b080e128488a23ea96cb585951489b990622083

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

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

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