• Michael Hudson-Doyle's avatar
    cmd/go: handle linking against a shared library that implicitly includes a package · 4255b78c
    Michael Hudson-Doyle authored
    If you say "go install -buildmode=shared a b" and package a depends on another
    package c, package c is implicitly included in the resulting shared library (as
    specified by "Go Execution Modes"). But if c depends on b, linking against this
    shared library hangs, because the go tool doesn't know when computing c's
    dependencies that c is part of the same shared library as c.
    
    Fix this by tracking the shared library a package *is* in separately from the
    shared library a package has been explicitly linked into.
    
    Fixes #13044
    
    Change-Id: Iacfedab24ae9731ed53d225678b447a2a888823c
    Reviewed-on: https://go-review.googlesource.com/16338
    Run-TryBot: Michael Hudson-Doyle <michael.hudson@canonical.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    4255b78c
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...