From: Dave Cheney Date: Mon, 10 Feb 2014 02:35:39 +0000 (+1100) Subject: cmd/go: skip $ORIGIN test on darwin systems X-Git-Tag: go1.3beta1~787 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=ff5f9bbf6a5d5281a2bf5326ce43df65deef4ac1;p=gostls13.git 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 --- 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"