From 3a32367040a06b55fa93baddba2b57371079af90 Mon Sep 17 00:00:00 2001 From: Alex Brainman Date: Thu, 2 May 2013 13:02:00 +1000 Subject: [PATCH] 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 --- src/cmd/ld/lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/ld/lib.c b/src/cmd/ld/lib.c index 47a52b553c..0a6bd3e8f2 100644 --- a/src/cmd/ld/lib.c +++ b/src/cmd/ld/lib.c @@ -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;