cmd/ld: darwin support for host linking

R=ken2
CC=golang-dev
https://golang.org/cl/7626045
This commit is contained in:
Russ Cox 2013-03-11 00:51:42 -04:00
parent 9e13803ae1
commit 3b85b724c5
11 changed files with 341 additions and 105 deletions

View file

@ -77,6 +77,10 @@ go run $GOROOT/test/run.go - .
[ "$GOHOSTOS" == openbsd ] || # issue 4878
(xcd ../misc/cgo/test
go test
case "$GOHOSTOS-$GOARCH" in
darwin-386 | darwin-amd64 | linux-386 | linux-amd64)
go test -ldflags '-w -hostobj'
esac
) || exit $?
[ "$CGO_ENABLED" != 1 ] ||