]> Cypherpunks repositories - gostls13.git/commit
cmd/go: fix cgo linking on netbsd
authorJoel Sing <jsing@google.com>
Wed, 22 Aug 2012 12:23:56 +0000 (22:23 +1000)
committerJoel Sing <jsing@google.com>
Wed, 22 Aug 2012 12:23:56 +0000 (22:23 +1000)
commit2281c3294b01501b177670e21d571ca7d5074cbf
tree66f35acb5566f1b12a95b9986c4180fdaf9770dc
parent2e6d0968e308b69b8be720f51a4177e90f41668f
cmd/go: fix cgo linking on netbsd

NetBSD's built-in linker script for 'ld -r' does not provide a
SEARCH_DIR. As a result libgcc.a is not found when -lgcc is used.

Work around this by determining the path to libgcc (by invoking
gcc with the -print-libgcc-file-name option) and explicitly
referencing the resulting library.

R=golang-dev, iant, aram, lucio.dere, minux.ma
CC=golang-dev
https://golang.org/cl/6470044
src/cmd/go/build.go