binutils: make conditional on Darwin to avoid Linux rebuilds

This commit is contained in:
Randy Eckenrode
2024-07-04 16:52:24 -04:00
parent 33c0dd692b
commit 879556bea5

View File

@@ -88,7 +88,8 @@ 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 [
# 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.
./0001-libtool.m4-update-macos-version-detection-block.patch