]> Cypherpunks repositories - gostls13.git/commit
go/build: pass CgoLDFLAGS at end of link command
authorRuss Cox <rsc@golang.org>
Thu, 12 Jan 2012 21:44:02 +0000 (13:44 -0800)
committerRuss Cox <rsc@golang.org>
Thu, 12 Jan 2012 21:44:02 +0000 (13:44 -0800)
commitc624fa691df0a7e59b89e9f3ca2333c28f65c4f5
tree4c0dd5c44843ab37985fc41e02a7f26e82e46180
parent7a7d3453917c92bdd27d2b0e3fbb7d027597dcfb
go/build: pass CgoLDFLAGS at end of link command

By the time a Unix linker gets to the end of the
command line it has forgotten what you told it
at the beginning of the command line, so you
have to put library arguments (like -lm) at the end.

R=golang-dev, r, bradfitz
CC=golang-dev
https://golang.org/cl/5541043
src/cmd/go/build.go
src/cmd/go/fix.go
src/cmd/go/fmt.go
src/cmd/go/main.go
src/cmd/go/run.go
src/cmd/go/test.go
src/cmd/go/vet.go