• Pietro Gagliardi's avatar
    cmd/cgo: explicitly state that #cgo directives across multiple files are concatenated · 5eb585f2
    Pietro Gagliardi authored
    This is a quick documentation change/clarification, as this
    confused me before: in my own cgo-based projects, I currently have
    identical #cgo directives in each relevant source file, and I notice
    with go build -x that cgo is combining the directives, leading to
    pkg-config invocations with the same package name (gtk+-3.0, in my
    case) repeated several times, or on Mac OS X, LDFLAGS listing
    -framework Foundation -framework AppKit multiple times. Since I am
    about to add a CFLAGS as well, I checked the source to cmd/cgo and
    go/build (where the work is actually done) to see if that still holds
    true there. Hopefully other people who have made the same mistake I
    have (I don't know if anyone has) can remove the excess declarations
    now; this should make things slightly easier to manage as well.
    
    LGTM=iant
    R=golang-codereviews, gobot, iant
    CC=golang-codereviews
    https://golang.org/cl/91520046
    5eb585f2
Name
Last commit
Last update
..
5a Loading commit data...
5c Loading commit data...
5g Loading commit data...
5l Loading commit data...
6a Loading commit data...
6c Loading commit data...
6g Loading commit data...
6l Loading commit data...
8a Loading commit data...
8c Loading commit data...
8g Loading commit data...
8l Loading commit data...
addr2line Loading commit data...
api Loading commit data...
cc Loading commit data...
cgo Loading commit data...
dist Loading commit data...
fix Loading commit data...
gc Loading commit data...
go Loading commit data...
gofmt Loading commit data...
ld Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
yacc Loading commit data...