diff options
author | Ian Lance Taylor <iant@golang.org> | 2014-05-20 21:36:50 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2014-05-20 21:36:50 -0700 |
commit | a0d21e150f9f579ef63423705e9d9ed79972f830 (patch) | |
tree | 6f3b04647e97ab47d279aae601faa6956335f9ae /src/run.bash | |
parent | d9a9b794a552da89699fbcc591064a35f5fcdeab (diff) | |
download | go-a0d21e150f9f579ef63423705e9d9ed79972f830.tar.gz |
cmd/ld: really import runtime/cgo for external link
Fixes issue 8032.
LGTM=rsc
R=rsc
CC=golang-codereviews
https://codereview.appspot.com/95580043
Diffstat (limited to 'src/run.bash')
-rwxr-xr-x | src/run.bash | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/run.bash b/src/run.bash index 4706c2bc4..76216ba01 100755 --- a/src/run.bash +++ b/src/run.bash @@ -145,6 +145,9 @@ dragonfly-386 | dragonfly-amd64 | freebsd-386 | freebsd-amd64 | freebsd-arm | li echo "No support for static linking found (lacks libc.a?), skip cgo static linking test." else go test -ldflags '-linkmode=external -extldflags "-static -pthread"' ../testtls || exit 1 + go test ../nocgo || exit 1 + go test -ldflags '-linkmode=external' ../nocgo || exit 1 + go test -ldflags '-linkmode=external -extldflags "-static -pthread"' ../nocgo || exit 1 fi ;; esac |