]> Cypherpunks repositories - gostls13.git/commit
cmd/link: correct runtime/cgo detection for -linkshared
authorHiroshi Ioka <hirochachacha@gmail.com>
Wed, 16 Aug 2017 22:26:07 +0000 (07:26 +0900)
committerIan Lance Taylor <iant@golang.org>
Thu, 17 Aug 2017 01:12:30 +0000 (01:12 +0000)
commit064ae118c1b8db9a5704be2529675cdab05109db
tree20ad689088dc4fe32e0cdc79c64091b9cdd49541
parentf52ce42274573d39386f3bacc77ab2ef969d5a0d
cmd/link: correct runtime/cgo detection for -linkshared

Current code detect runtime/cgo iff the package or sub packages imports
runtime/cgo directly. However, when we are using linkshared, imported
shared libraries might have already included runtime/cgo.
This CL handles later case by looking an actual runtime/cgo symbol.

Change-Id: I35e7dfdb5e1a939eafc95a0259ee1af9782bc864
Reviewed-on: https://go-review.googlesource.com/56310
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/link/internal/ld/lib.go