diff options
author | Dave Cheney <dave@cheney.net> | 2014-02-10 13:35:39 +1100 |
---|---|---|
committer | Dave Cheney <dave@cheney.net> | 2014-02-10 13:35:39 +1100 |
commit | a0b8e24dbceb6db24d0505ffedfdf218a0a04581 (patch) | |
tree | 8909df763413b18421ee3a907648e56319e1c6c7 | |
parent | 610519cb96be25260a9bc37d9e9806a714214b89 (diff) | |
download | go-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-x | src/cmd/go/test.bash | 2 |
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" |