]> Cypherpunks repositories - gostls13.git/commit
cmd/go: pass --build-id=none when generating a cgo .o
authorIan Lance Taylor <iant@golang.org>
Thu, 7 Aug 2014 19:38:39 +0000 (12:38 -0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 7 Aug 2014 19:38:39 +0000 (12:38 -0700)
commit7fdb0292a5e322c302b5ab685d8ee2623a69608a
tree9abaa9046286062bd192896f0d374bbf2aaa4787
parent3d7e3691207fd9dabfe12a560ecac473e7e59737
cmd/go: pass --build-id=none when generating a cgo .o

Some systems, like Ubuntu, pass --build-id when linking.  The
effect is to put a note in the output file.  This is not
useful when generating an object file with the -r option, as
it eventually causes multiple build ID notes in the final
executable, all but one of which are for tiny portions of the
file and are therefore useless.

Disable that by passing an explicit --build-id=none when
linking with -r on systems that might do this.

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/119460043
misc/cgo/test/buildid_linux.go [new file with mode: 0644]
misc/cgo/test/cgo_linux_test.go
src/cmd/go/build.go