What is the difference between external linking
and internal linking
program, and how do I make a choice between them?
#35579
Labels
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
not test
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOBIN=""
GOCACHE="/root/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/root/.gvm/pkgsets/go1.12.4/global"
GOPROXY="https://goproxy.cn"
GORACE=""
GOROOT="/root/.gvm/gos/go1.12.4"
GOTMPDIR=""
GOTOOLDIR="/root/.gvm/gos/go1.12.4/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/opt/sghproxy/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build427518459=/tmp/go-build -gno-record-gcc-switches"
go env
OutputWhat did you do?
What did you expect to see?
Well, I think they are very nearly the same between
client-s
andclient-s2
.What did you see instead?
Actually you could see that the size between
client-s
andclient-s2
are large, so what is the difference betweenexternal linking
andinternal linking
for the static linking program?And how do I make a choice between them?
By the way, I could only use
internal linking
onmacOS15.1
.Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: