cmd/link: fix -no-pie / -race check
cmd/link: fix -no-pie / -race check

golang.org/cl/22453 was supposed to pass -no-pie to the linker when linking a
race-enabled binary if the host toolchain supports it. But I bungled the
supported check as I forgot to pass -c to the host compiler so it tried to
compile a 0 byte .c file into an executable, which will never work. Fix it to
pass -c as it should have all along.

Change-Id: I4801345c7a29cb18d5f22cec5337ce535f92135d
Reviewed-on: https://go-review.googlesource.com/22587
Run-TryBot: Michael Hudson-Doyle <5e87ffb38a52af6fb9a19b679e9122c7a4d601a5@canonical.com>
TryBot-Result: Gobot Gobot <66cb808b70d30c07676d5e946fee83fd561249e5@golang.org>
Reviewed-by: Minux Ma <72d850dbd8858b791995463d8539b5a379577f28@golang.org>

suncycheng/go,cloudflare/go,theif519/go,josharian/go,derekmarcotte/go,golang/go,CAFxX/go,golang/go,ganboing/go-esx,polyverse-security/go,vsekhar/elastic-go,4ad/go,akutz/go,momchil-velikov/go,cloudflare/go,CAFxX/go,codestation/go,CAFxX/go,golang/go,nawawi/go,akutz/go,golang/go,theif519/go,momchil-velikov/go,CAFxX/go,josharian/go,goodlang/good,momchil-velikov/go,goodlang/good,linux-on-ibm-z/go,josharian/go,ImJasonH/go,momchil-velikov/go,akutz/go,ganboing/go-esx,linux-on-ibm-z/go,Cofyc/go,nawawi/go,theif519/go,akutz/go,ganboing/go-esx,polyverse-security/go,codestation/go,suncycheng/go,linux-on-ibm-z/go,linux-on-ibm-z/go,akutz/go,josharian/go,golang/go,codestation/go,polyverse-security/go,theif519/go,momchil-velikov/go,nawawi/go,derekmarcotte/go,4ad/go,ImJasonH/go,vsekhar/elastic-go,cloudflare/go,Cofyc/go,4ad/go,vsekhar/elastic-go,ganboing/go-esx,theif519/go,vsekhar/elastic-go,derekmarcotte/go,golang/go,josharian/go,derekmarcotte/go,akutz/go,ImJasonH/go,cloudflare/go,suncycheng/go,vsekhar/elastic-go,vsekhar/elastic-go,akutz/go,nawawi/go,codestation/go,linux-on-ibm-z/go,derekmarcotte/go,josharian/go,golang/go,derekmarcotte/go,derekmarcotte/go,codestation/go,ganboing/go-esx,nawawi/go,Cofyc/go,christopher-henderson/Go,ImJasonH/go,derekmarcotte/go,ImJasonH/go,cloudflare/go,ImJasonH/go,theif519/go,vsekhar/elastic-go,suncycheng/go,codestation/go,josharian/go,ImJasonH/go,suncycheng/go,linux-on-ibm-z/go,goodlang/good,nawawi/go,Cofyc/go,goodlang/good,polyverse-security/go,Cofyc/go,CAFxX/go,4ad/go,Cofyc/go,polyverse-security/go,suncycheng/go,akutz/go,cloudflare/go,ganboing/go-esx,goodlang/good,goodlang/good,golang/go,codestation/go,momchil-velikov/go,momchil-velikov/go,ganboing/go-esx,josharian/go,4ad/go,ImJasonH/go,ganboing/go-esx,polyverse-security/go,codestation/go,suncycheng/go,momchil-velikov/go,polyverse-security/go,goodlang/good,Cofyc/go,linux-on-ibm-z/go,goodlang/good,4ad/go,4ad/go,CAFxX/go,vsekhar/elastic-go,theif519/go,nawawi/go,Cofyc/go,nawawi/go,linux-on-ibm-z/go,polyverse-security/go,suncycheng/go,CAFxX/go,theif519/go,4ad/go,cloudflare/go,CAFxX/go,cloudflare/go