]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.5] runtime/cgo: explicitly link msvcrt on windows
authorShenghou Ma <minux@golang.org>
Thu, 10 Sep 2015 06:32:12 +0000 (02:32 -0400)
committerAustin Clements <austin@google.com>
Tue, 17 Nov 2015 02:20:12 +0000 (02:20 +0000)
commit2cfde4152050063d8fa66b8c28f3b4b137d08a7a
treeebfbfcb5ea2a3ac0b008b9b46f45cb0a19bb3af6
parent095710b39ec15e4df62eab0781a9d685dbe575a5
[release-branch.go1.5] 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>
Reviewed-on: https://go-review.googlesource.com/16966
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Minux Ma <minux@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
misc/cgo/test/cgo_test.go
misc/cgo/test/issue12030.go [new file with mode: 0644]
src/runtime/cgo/cgo.go