binutils gold linker detection does not work when called via gcc and selected by commandline parameters
The binutils gold detection does not work if it is called via gcc and only selected via commandline parameters (i.e. -fuse-ld=gold). Reason is that the "linker" (actually compiler) is called without its commandline parameters.
Attached patch fixes that.