Skip to content

Commit

Permalink
binutils: CoreServices depends on host, not build platform
Browse files Browse the repository at this point in the history
This was introduced in 879556b and 33c0dd6.

See: 33c0dd6#r146876310.
  • Loading branch information
sternenseemann committed Sep 19, 2024
1 parent d792330 commit 3110e34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/development/tools/misc/binutils/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ stdenv.mkDerivation (finalAttrs: {
# not need to know binutils' BINDIR at all. It's an absolute path
# where libraries are stored.
./plugins-no-BINDIR.patch
] ++ lib.optionals buildPlatform.isDarwin [
] ++ lib.optionals hostPlatform.isDarwin [
# Note: Conditional to avoid Linux rebuilds on staging-next. Remove the conditional with the next update.
# ld64 needs `-undefined dynamic_lookup` to link `libctf-nobfd.dylib`, but the Darwin
# version detection in `libtool.m4` fails to detect the Darwin version correctly.
Expand Down Expand Up @@ -122,7 +122,7 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optionals targetPlatform.isVc4 [ flex ]
;

buildInputs = [ zlib gettext ] ++ lib.optionals buildPlatform.isDarwin [ CoreServices ];
buildInputs = [ zlib gettext ] ++ lib.optionals hostPlatform.isDarwin [ CoreServices ];

inherit noSysDirs;

Expand Down

0 comments on commit 3110e34

Please sign in to comment.