binutils: fix cygwin build

This commit is contained in:
David McFarland
2026-01-02 12:58:42 -04:00
parent be8c8ea769
commit 298efd82dd
@@ -19,7 +19,9 @@ in
enableGold ? withGold stdenv.targetPlatform,
enableGoldDefault ? false,
enableShared ? !stdenv.hostPlatform.isStatic,
# shared lib linking fails on cygwin due to multiple definitions
# https://cygwin.com/cgit/cygwin-packages/binutils/blame/binutils.cygport
enableShared ? (!stdenv.hostPlatform.isStatic && !stdenv.hostPlatform.isCygwin),
# WARN: Enabling all targets increases output size to a multiple.
withAllTargets ? false,
}: