aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Cheney <dave@cheney.net>2014-02-10 13:35:39 +1100
committerDave Cheney <dave@cheney.net>2014-02-10 13:35:39 +1100
commitff5f9bbf6a5d5281a2bf5326ce43df65deef4ac1 (patch)
tree777c1cb3004d8ce2f09031332d0bffef04ddb667 /src
parent414b45d91a3bcb5dacd5061c9a93cb8936592b87 (diff)
downloadgo-ff5f9bbf6a5d5281a2bf5326ce43df65deef4ac1.tar.xz
cmd/go: skip $ORIGIN test on darwin systems
Fixes #7293. Update #7261 The bsd ld(1) does not understand $ORIGIN and has restrictions on using -rpath when using clang(1), the default compiler on darwin. LGTM=iant R=iant CC=golang-codereviews https://golang.org/cl/58480045
Diffstat (limited to 'src')
-rwxr-xr-xsrc/cmd/go/test.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/go/test.bash b/src/cmd/go/test.bash
index d0926e2105..0e4af62754 100755
--- a/src/cmd/go/test.bash
+++ b/src/cmd/go/test.bash
@@ -608,7 +608,7 @@ export GOPATH=$d
mkdir -p $d/src/origin
echo '
package origin
-// #cgo LDFLAGS: -Wl,-rpath -Wl,$ORIGIN
+// #cgo !darwin LDFLAGS: -Wl,-rpath -Wl,$ORIGIN
// void f(void) {}
import "C"