summaryrefslogtreecommitdiff
path: root/src/run.bash
diff options
context:
space:
mode:
authorShenghou Ma <minux.ma@gmail.com>2014-04-21 00:08:59 -0400
committerShenghou Ma <minux.ma@gmail.com>2014-04-21 00:08:59 -0400
commitf87c24c8d5844b3eee18d95988ffc61eb5d64204 (patch)
tree684c0040a649b36fd85e96c6528d29a60a5de463 /src/run.bash
parent211545311415e5a3d05c8253eef64e822fdd34a9 (diff)
downloadgo-f87c24c8d5844b3eee18d95988ffc61eb5d64204.tar.gz
runtime, cmd/ld, cmd/5l, run.bash: enable external linking on FreeBSD/ARM.
Update issue 7331 LGTM=dave, iant R=golang-codereviews, dave, gobot, iant CC=golang-codereviews https://codereview.appspot.com/89520043
Diffstat (limited to 'src/run.bash')
-rwxr-xr-xsrc/run.bash7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/run.bash b/src/run.bash
index f0fb928b2..0f3e4e0f3 100755
--- a/src/run.bash
+++ b/src/run.bash
@@ -127,13 +127,18 @@ darwin-386 | darwin-amd64)
*) go test -ldflags '-linkmode=external' || exit 1;;
esac
;;
-dragonfly-386 | dragonfly-amd64 | freebsd-386 | freebsd-amd64 | linux-386 | linux-amd64 | linux-arm | netbsd-386 | netbsd-amd64)
+dragonfly-386 | dragonfly-amd64 | freebsd-386 | freebsd-amd64 | freebsd-arm | linux-386 | linux-amd64 | linux-arm | netbsd-386 | netbsd-amd64)
go test -ldflags '-linkmode=external' || exit 1
go test -ldflags '-linkmode=auto' ../testtls || exit 1
go test -ldflags '-linkmode=external' ../testtls || exit 1
case "$GOHOSTOS-$GOARCH" in
netbsd-386 | netbsd-amd64) ;; # no static linking
+ freebsd-arm) ;; # -fPIC compiled tls code will use __tls_get_addr instead
+ # of __aeabi_read_tp, however, on FreeBSD/ARM, __tls_get_addr
+ # is implemented in rtld-elf, so -fPIC isn't compatible with
+ # static linking on FreeBSD/ARM with clang. (cgo depends on
+ # -fPIC fundamentally.)
*)
go test -ldflags '-linkmode=external -extldflags "-static -pthread"' ../testtls || exit 1
;;