diff options
author | Russ Cox <rsc@golang.org> | 2014-04-15 15:52:02 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2014-04-15 15:52:02 -0400 |
commit | 4a64aaf1d882306eb30d91f65aefa6cf45801a3a (patch) | |
tree | 9245927997b73ada067f5d788db7fc0fe2d0df66 /src/run.bash | |
parent | 8f493cf018461439b8ce608dfdd902adc33a32b8 (diff) | |
download | go-4a64aaf1d882306eb30d91f65aefa6cf45801a3a.tar.gz |
build: disable static cgo linking test on netbsd
We get
/usr/lib/libc.a(stack_protector.o): In function `__stack_chk_fail_local':
stack_protector.c:(.text+0x158): multiple definition of `__stack_chk_fail_local'
/var/tmp/go-link-04838a/000001.o:/tmp/gobuilder/netbsd-386-minux-c7a9e9243878/go/src/pkg/runtime/cgo/gcc_386.S:41: first defined here
I am assuming this has never worked and possibly is not intended to work.
(Some systems are vehemently against static linking.)
TBR=iant
CC=golang-codereviews
https://codereview.appspot.com/88130046
Diffstat (limited to 'src/run.bash')
-rwxr-xr-x | src/run.bash | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/run.bash b/src/run.bash index 3c0abd97b..f3c4c6fb7 100755 --- a/src/run.bash +++ b/src/run.bash @@ -131,7 +131,14 @@ dragonfly-386 | dragonfly-amd64 | freebsd-386 | freebsd-amd64 | linux-386 | linu go test -ldflags '-linkmode=external' || exit 1 go test -ldflags '-linkmode=auto' ../testtls || exit 1 go test -ldflags '-linkmode=external' ../testtls || exit 1 - go test -ldflags '-linkmode=external -extldflags "-static -pthread"' ../testtls || exit 1 + + case "$GOHOSTOS-GOARCH" in + netbsd-386 | netbsd-amd64) ;; # no static linking + *) + go test -ldflags '-linkmode=external -extldflags "-static -pthread"' ../testtls || exit 1 + ;; + esac + ;; esac ) || exit $? |