]> Cypherpunks repositories - gostls13.git/commit
runtime/cgo: explicitly link msvcrt on windows
authorShenghou Ma <minux@golang.org>
Thu, 10 Sep 2015 06:32:12 +0000 (02:32 -0400)
committerMinux Ma <minux@golang.org>
Sat, 12 Sep 2015 08:34:52 +0000 (08:34 +0000)
commit0b5bcf53ee4af0e244ba1991069741774bf4f164
treead8e8d5097b18c63c88efba5107ca86f52bd167b
parentea4e321d4daef32f4cd8df8ec799122ff3c6b9f0
runtime/cgo: explicitly link msvcrt on windows

It's because runtime links to ntdll, and ntdll exports a couple
incompatible libc functions. We must link to msvcrt first and
then try ntdll.

Fixes #12030.

Change-Id: I0105417bada108da55f5ae4482c2423ac7a92957
Reviewed-on: https://go-review.googlesource.com/14472
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
Run-TryBot: Minux Ma <minux@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
misc/cgo/test/cgo_test.go
misc/cgo/test/issue12030.go [new file with mode: 0644]
src/runtime/cgo/cgo.go