binutils: fix cygwin build (#476298)

This commit is contained in:
Aleksana
2026-01-03 09:29:10 +00:00
committed by GitHub
@@ -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,
}: