diff --git a/src/cmd/link/internal/amd64/obj.go b/src/cmd/link/internal/amd64/obj.go index e489bb75a9..bb65067e87 100644 --- a/src/cmd/link/internal/amd64/obj.go +++ b/src/cmd/link/internal/amd64/obj.go @@ -90,7 +90,7 @@ func archinit() { ld.Linkmode = ld.LinkInternal } - if ld.Buildmode == ld.BuildmodeCShared || ld.DynlinkingGo() { + if ld.Buildmode == ld.BuildmodeCArchive || ld.Buildmode == ld.BuildmodeCShared || ld.DynlinkingGo() { ld.Linkmode = ld.LinkExternal }