summaryrefslogtreecommitdiff
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
commita0b8e24dbceb6db24d0505ffedfdf218a0a04581 (patch)
tree8909df763413b18421ee3a907648e56319e1c6c7
parent610519cb96be25260a9bc37d9e9806a714214b89 (diff)
downloadgo-a0b8e24dbceb6db24d0505ffedfdf218a0a04581.tar.gz
cmd/go: skip $ORIGIN test on darwin systems
Fixes issue 7293. Update issue 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://codereview.appspot.com/58480045
-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 d0926e210..0e4af6275 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"