]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: skip $ORIGIN test on darwin systems
authorDave Cheney <dave@cheney.net>
Mon, 10 Feb 2014 02:35:39 +0000 (13:35 +1100)
committerDave Cheney <dave@cheney.net>
Mon, 10 Feb 2014 02:35:39 +0000 (13:35 +1100)
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

index d0926e21052b348b4b3b53d8860d77074944810a..0e4af62754ed7c3feb77a75e5452fa6982cad724 100755 (executable)
@@ -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"