commit | 25d5e9dca49ad3f49393b254dd87f8df51487c65 | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Fri Nov 15 13:12:43 2019 -0800 |
committer | Ian Lance Taylor <iant@golang.org> | Fri Nov 15 21:13:57 2019 +0000 |
tree | b4a511200a361c7c1798043be49afce8d73182b9 | |
parent | 2d0504236c7236345ee17a0cb43a3bb9ce3acf7f [diff] |
testmain.exp: link against GOLIBS Patch by Maciej W. Rozycki. Change-Id: I373d19bbcc0d160065e1453d613c0473a5adb0f9 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/207458 Reviewed-by: Ian Lance Taylor <iant@golang.org>
diff --git a/libgo/testsuite/libgo.testmain/testmain.exp b/libgo/testsuite/libgo.testmain/testmain.exp index 0b887ac..6dd5445 100644 --- a/libgo/testsuite/libgo.testmain/testmain.exp +++ b/libgo/testsuite/libgo.testmain/testmain.exp
@@ -47,7 +47,11 @@ regsub $gluefile $object_files "" object_files } -set comp_output [go_target_compile "$object_files _testmain.go" \ +set golibs "" +if [info exists env(GOLIBS)] { + set golibs "$env(GOLIBS)" +} +set comp_output [go_target_compile "$object_files _testmain.go $golibs" \ "./a.exe" "executable" $options] if ![ string match "" $comp_output ] { verbose -log $comp_output