]> Cypherpunks repositories - gostls13.git/commit
cmd/link: fix -no-pie / -race check
authorMichael Hudson-Doyle <michael.hudson@canonical.com>
Thu, 28 Apr 2016 22:37:37 +0000 (10:37 +1200)
committerMichael Hudson-Doyle <michael.hudson@canonical.com>
Thu, 28 Apr 2016 23:32:31 +0000 (23:32 +0000)
commitcb97fd7741fc8bfa257bb020dab756a14c420daf
tree51784259e1e8f00ddeb9c488a1134b7efebf7223
parent6ed79fbd1abf018b018088c6a1699cd34ee6d56c
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 <michael.hudson@canonical.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Minux Ma <minux@golang.org>
src/cmd/link/internal/ld/lib.go