mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-12 08:13:34 +00:00
binutils: make conditional on Darwin to avoid Linux rebuilds
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user