From a0d21e150f9f579ef63423705e9d9ed79972f830 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 20 May 2014 21:36:50 -0700 Subject: cmd/ld: really import runtime/cgo for external link Fixes issue 8032. LGTM=rsc R=rsc CC=golang-codereviews https://codereview.appspot.com/95580043 --- src/run.bash | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/run.bash') 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 -- cgit v1.2.1