Repository navigation
Commit 687df0c
committed
fix(nix): strip the unused libiconv dependency with dead_strip_dylibs
Removing libiconv from buildInputs was not enough: the nixpkgs Darwin stdenv
injects -liconv regardless, so the arm64 binary still recorded the unused
/nix/store libiconv dylib (the otool gate caught it). ccusage references no
iconv symbols, so add -Wl,-dead_strip_dylibs to the Darwin link, which drops
dylib load commands with no used symbols. The arm64 binary now links only
/usr/lib/libSystem.B.dylib (verified), so the install-name rewrite stays gone.
(Linux ships a fully static musl binary with no dynamic deps, so no equivalent
is needed there.)1 parent 7afcec6 commit 687df0c
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
31 | 38 | | |
32 | 39 | | |
33 | 40 | | |
| |||
0 commit comments