Skip to content

Commit 95377aa

Browse files
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

File tree

4 files changed

+285
-61
lines changed

4 files changed

+285
-61
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ Options:
161161
Enable/disable keeping source folder for archive (default: disabled)
162162
--log-level LEVEL Build script log level (default: info)
163163
--plan FILE Follow given plan file, instead of using given git ref/sha
164+
--clean-macho-binary FILE Tool to clean duplicate RPATHs from given Mach-O binary.
164165
```
165166

166167
Resulting applications are saved to the `builds` directory in a bzip2 compressed

0 commit comments

Comments
 (0)