From ff5f9bbf6a5d5281a2bf5326ce43df65deef4ac1 Mon Sep 17 00:00:00 2001 From: Dave Cheney Date: Mon, 10 Feb 2014 13:35:39 +1100 Subject: [PATCH] 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 --- src/cmd/go/test.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/go/test.bash b/src/cmd/go/test.bash index d0926e21052..0e4af62754e 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"