I am having trouble building a linux .so on my Mac (10.10.4) with go1.5rc1.
$ GOOS=linux go build -buildmode=shared -ldflags=-v std
# /var/folders/dh/8tf0gx091zs_02mw_s0c956w0000gp/T/go-build640930786/libstd.so
HEADER = -H5 -T0x401000 -D0x0 -R0x1000
searching for runtime.a in $WORK/runtime.a
searching for runtime/cgo.a in $WORK/runtime/cgo.a
searching for runtime/cgo.a in /usr/local/go/pkg/linux_amd64_dynlink/runtime/cgo.a
warning: unable to find runtime/cgo.a
0.00 deadcode
0.08 pclntab=2197275 bytes, funcdata total 528908 bytes
0.11 dodata
0.33 reloc
0.39 asmb
0.39 codeblk
0.62 datblk
0.63 sym
0.66 symsize = 1321632
0.70 symsize = 2417832
0.70 dwarf
0.93 symsize = 2417832
1.49 dwarf pass 2.
2.12 headr
host link: "clang" "-m64" "-gdwarf-2" "-Wl,-Bsymbolic-functions" "-shared" "-o" "/var/folders/dh/8tf0gx091zs_02mw_s0c956w0000gp/T/go-build640930786/libstd.so" "-rdynamic" "-Qunused-arguments" "/var/folders/dh/8tf0gx091zs_02mw_s0c956w0000gp/T/go-link-714171355/000000.o" "/var/folders/dh/8tf0gx091zs_02mw_s0c956w0000gp/T/go-link-714171355/go.o"
/usr/local/go/pkg/tool/darwin_amd64/link: running clang failed: exit status 1
ld: unknown option: -Bsymbolic-functions
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I'm not sure if this is related, but building go from source is failing when running the cgo/testcshared test:
##### ../misc/cgo/testso
##### ../misc/cgo/testsovar
##### ../misc/cgo/testcarchive
PASS
PASS
PASS
##### ../misc/cgo/testcshared
FAIL test2 got