• Michael Hudson-Doyle's avatar
    cmd/go: When linking with gccgo pass .a files in the order they are discovered · 9f8f0a1b
    Michael Hudson-Doyle authored
    Under some circumstances linking a test binary with gccgo can fail, because
    the installed version of the library ends up before the version built for the
    test on the linker command line.
    
    This admittedly slightly hackish fix fixes this by putting the library archives
    on the linker command line in the order that a pre-order depth first traversal
    of the dependencies gives them, which has the side effect of always putting the
    version of the library built for the test first.
    
    Fixes #6768
    
    LGTM=rsc
    R=golang-codereviews, minux.ma, gobot, rsc, dave
    CC=golang-codereviews
    https://golang.org/cl/28050043
    9f8f0a1b
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...
prof Loading commit data...
yacc Loading commit data...