]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: fix cgoTestSO on FreeBSD amd64 with GOHOSTARCH=386
authorJoel Sing <jsing@google.com>
Fri, 8 Jan 2016 12:22:12 +0000 (23:22 +1100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 8 Jan 2016 17:00:53 +0000 (17:00 +0000)
commitbeb1741ae380d4e196f9d6e2e720fc0dc007ef00
tree34284e5d5bd92a57ceab1a7e7f5b32fc0adac8e3
parent29eea94abe3841d9569f6b8d110d92a54641c31b
cmd/dist: fix cgoTestSO on FreeBSD amd64 with GOHOSTARCH=386

The cgoTestSO test currently fails when run on FreeBSD amd64 with
GOHOSTARCH=386. This is due to it failing to find the shared object.

On FreeBSD 64-bit architectures, the linker for 32-bit objects
looks for a separate environment variable. Export both LD_LIBRARY_PATH
and LD_32_LIBRARY_PATH on FreeBSD when GOHOSTARCH=386.

Update issue #13873.

Change-Id: I1fb20dd04eb2007061768b2e4530886521813d42
Reviewed-on: https://go-review.googlesource.com/18420
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/dist/test.go