Commit 95377aa
committed
fix(deps): work around duplicate RPATHs in libgccjit from Nix
This is a horrible hack to work around macOS 15.4 no longer allowing the
use of shared libraries which have duplicate RPATHs. Annoying libgccjit
from Nix has two sets of duplicate RPATHs.
Hence the fix is to check the RPATHs of `libgccjit*.dylib`, remove any
duplicates, and also ensure there's no duplicates in CFLAGS, LDFLAGS, or
LIBRARY_PATHS which can cause libgccjit to output new compiled code with
duplicate RPATHs.
If needed, it will trigger sudo to modify the `libgccjit*.dylib` file
within the Nix store. It does create a `.bak` backup file, so you can
restore it if needed.1 parent bc2a457 commit 95377aa
4 files changed
+285
-61
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
| |||
0 commit comments