• 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
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...