]> Cypherpunks repositories - gostls13.git/commit
cmd/go: remove _cgo_flags from gccgo archive built using SWIG
authorIan Lance Taylor <iant@golang.org>
Tue, 1 Nov 2016 20:04:56 +0000 (13:04 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 1 Nov 2016 21:47:42 +0000 (21:47 +0000)
commit7c7349c9e9217d7bb22f41eaa658bbba8716bad6
treec5ca265c37cfbbfec4f271c070ac23e96574353d
parent4e584c52036fb2a572fab466e2a291fb695da882
cmd/go: remove _cgo_flags from gccgo archive built using SWIG

Since SWIG uses cgo, when using SWIG with gccgo, the go tool will add a
_cgo_flags file to the package archive, just as it does with cgo. We
need to remove that file from the archive passed to the linker, just as
we do with cgo.

Change-Id: I5ef4fea92eec419f870fbf6f678691d15901ee6c
Reviewed-on: https://go-review.googlesource.com/32535
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Michael Hudson-Doyle <michael.hudson@canonical.com>
src/cmd/go/build.go