Fix detection of GNU gold linker if invoked via gcc with parameters
authorSebastian Dröge <sebastian@centricular.com>
Tue, 18 Nov 2014 18:40:20 +0000 (12:40 -0600)
committerAustin Seipp <austin@well-typed.com>
Tue, 18 Nov 2014 18:40:24 +0000 (12:40 -0600)
commite7b414a3cc0e27049f2608f5e0a00c47146cc46d
tree80eed7446a44533257924f88f55dd373a35d5043
parentc557f991a9fa6f6afad4850e4f5db6a08fa1cb6c
Fix detection of GNU gold linker if invoked via gcc with parameters

Previously the linker was called without any commandline parameters to
detect whether bfd or gold is used. However the -fuse-ld parameter can
be used to switch between gold and bfd and should be taken into account
here.

Trac #9336

Signed-off-by: Austin Seipp <austin@well-typed.com>
compiler/main/SysTools.lhs