aboutsummaryrefslogtreecommitdiff
path: root/src/run.bash
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2013-03-19 15:45:42 -0400
committerRuss Cox <rsc@golang.org>2013-03-19 15:45:42 -0400
commitb4f3533c92dc59f22bbddbc5b73a1575ce6f7f8b (patch)
treecc69d632eaae7b8aff08e47c22257ee453b53568 /src/run.bash
parentab08eac5b78c05672a1bcdc5012f9f9384f86fba (diff)
downloadgo-b4f3533c92dc59f22bbddbc5b73a1575ce6f7f8b.tar.xz
cmd/ld: replace -hostobj with -linkmode
Still disabled. Need to fix TLS. R=golang-dev, minux.ma, bradfitz CC=golang-dev https://golang.org/cl/7783044
Diffstat (limited to 'src/run.bash')
-rwxr-xr-xsrc/run.bash5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/run.bash b/src/run.bash
index 6c96d5ddd2..538d4f6fe0 100755
--- a/src/run.bash
+++ b/src/run.bash
@@ -75,10 +75,11 @@ go run $GOROOT/test/run.go - .
[ "$CGO_ENABLED" != 1 ] ||
(xcd ../misc/cgo/test
-go test
+go test -ldflags '-linkmode=auto'
+go test -ldflags '-linkmode=internal'
case "$GOHOSTOS-$GOARCH" in
darwin-386 | darwin-amd64 | freebsd-386 | freebsd-amd64 | linux-386 | linux-amd64 | netbsd-386 | netbsd-amd64 | openbsd-386 | openbsd-amd64)
- go test -ldflags '-w -hostobj'
+ go test -ldflags '-linkmode=external'
esac
) || exit $?