From 5bc8ea353b0aac6b037d12ff287df1edc52688c4 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 19 Mar 2013 15:45:42 -0400 Subject: cmd/ld: replace -hostobj with -linkmode Still disabled. Need to fix TLS. R=golang-dev, minux.ma, bradfitz CC=golang-dev https://codereview.appspot.com/7783044 --- src/run.bash | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/run.bash') diff --git a/src/run.bash b/src/run.bash index 6c96d5ddd..538d4f6fe 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 $? -- cgit v1.2.1