golang/go

cmd/go: -compiler=gccgo: -buildmode=c-archive can't produce an archive with statically linked libgo

Open

#61.549 aberto em 24 de jul. de 2023

Ver no GitHub
 (1 comment) (0 reactions) (0 assignees)Go (19.008 forks)batch import
GoCommandNeedsInvestigationhelp wanted

Métricas do repositório

Stars
 (133.883 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

What version of Go are you using (go version)?

Does this issue reproduce with the latest release?

Yes

What operating system and processor architecture are you using (go env)?

What did you do?

What did you expect to see?

The program compiles and then executes without errors. This is what happens when using the standard "gc" compiler.

What did you see instead?

The created archive size is much smaller than archive created by "gc" (100634 vs 4876006 bytes on my machine). This clearly indicates that "-gccgoflags=-static-libgo" option got ignored.

Guia do colaborador