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"