1
0
mirror of https://github.com/golang/go synced 2024-11-17 22:05:02 -07:00

cmd/ld: fix SDYNIMPORT symbol test

As advised by iant. Fixes windows build.

R=golang-dev, r
CC=golang-dev, iant
https://golang.org/cl/9110044
This commit is contained in:
Alex Brainman 2013-05-02 13:02:00 +10:00
parent d727d147c0
commit 3a32367040

View File

@ -336,7 +336,7 @@ loadlib(void)
// cgo_import_static and cgo_import_dynamic,
// then we want to make it cgo_import_dynamic
// now.
if(s->extname != nil && s->cgoexport == 0) {
if(s->extname != nil && s->dynimplib != nil && s->cgoexport == 0) {
s->type = SDYNIMPORT;
} else
s->type = 0;