1
0
mirror of https://github.com/golang/go synced 2024-11-23 13:40:04 -07:00

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
This commit is contained in:
Dave Cheney 2014-02-10 13:35:39 +11:00
parent 414b45d91a
commit ff5f9bbf6a

View File

@ -608,7 +608,7 @@ export GOPATH=$d
mkdir -p $d/src/origin mkdir -p $d/src/origin
echo ' echo '
package origin package origin
// #cgo LDFLAGS: -Wl,-rpath -Wl,$ORIGIN // #cgo !darwin LDFLAGS: -Wl,-rpath -Wl,$ORIGIN
// void f(void) {} // void f(void) {}
import "C" import "C"