You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
This example is extracted from cmd/go/test.bash
odessa(~/src) % cat origin/origin.go
package origin
// #cgo LDFLAGS: -Wl,-rpath -Wl,$ORIGIN
// void f(void) {}
import "C"
func f() { C.f() }
What is the expected output? What do you see instead?
odessa(~/src) % go build origin
# origin
ld: -rpath can only be used when creating a dynamic final linked image
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The same test passes on linux
Please use labels and text to provide additional information.
odessa(~/src) % uname -a
Darwin odessa.fritz.box 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT
2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64
odessa(~/src) % cc -v
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: