]> Cypherpunks repositories - gostls13.git/commit
cmd/go: if there are C++ sources, use g++ as default external linker
authorIan Lance Taylor <iant@golang.org>
Mon, 9 Sep 2013 19:50:49 +0000 (12:50 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 9 Sep 2013 19:50:49 +0000 (12:50 -0700)
commitf0ff63ea64c878ebe67db70be8f41f73f21bbaff
tree61c8837e0cc468f71dc3d84bca0129b98f49e561
parent7d734d9252febfd91cb0ff5fc54f11defc5f4daa
cmd/go: if there are C++ sources, use g++ as default external linker

This will bring in the C++ standard library without requiring
any special #cgo LDFLAGS options.

When using gccgo, just add -lstdc++ to link line; this should
do no harm if it is not needed.

No tests, since we don't want to assume a C++ compiler.

Update #5629

R=golang-dev, minux.ma, rsc
CC=golang-dev
https://golang.org/cl/13394045
src/cmd/go/build.go