aboutsummaryrefslogtreecommitdiff
path: root/misc/cgo/testso/so_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'misc/cgo/testso/so_test.go')
-rw-r--r--misc/cgo/testso/so_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/misc/cgo/testso/so_test.go b/misc/cgo/testso/so_test.go
index 1c97ae9bcb..2023c51f11 100644
--- a/misc/cgo/testso/so_test.go
+++ b/misc/cgo/testso/so_test.go
@@ -79,6 +79,10 @@ func TestSO(t *testing.T) {
case "windows":
ext = "dll"
args = append(args, "-DEXPORT_DLL")
+ // At least in mingw-clang it is not permitted to just name a .dll
+ // on the command line. You must name the corresponding import
+ // library instead, even though the dll is used when the executable is run.
+ args = append(args, "-Wl,-out-implib,libcgosotest.a")
case "aix":
ext = "so.1"
}