]> Cypherpunks repositories - gostls13.git/commit
cmd/go: make sure the linker for shared doesn't include tempdir path
authorzhangjian <zj.cosmos@gmail.com>
Thu, 26 Sep 2024 16:42:21 +0000 (16:42 +0000)
committerMichael Matloob <matloob@golang.org>
Fri, 11 Oct 2024 15:31:40 +0000 (15:31 +0000)
commit1041c2cf019188954a4c2621f44270505968c291
tree77f7d9a4409345e9c5c61e2540e3e0ffc7ba2e87
parentd20a4c2403edf07f05eb024e3af568782303ce97
cmd/go: make sure the linker for shared doesn't include tempdir path

This is similar to CL 478196 and CL 477296,
but this is for -buildmode=shared.

When using "go install -buildmode=shared std",
because the gold linker is used by default on Linux arm64,
it will cause temporary paths to be included in libstd.so.

Based on the changes of CL 478196,
I speculate that this may also have issues on other platforms.
So, this change is for all platform.

Fixes #69464

Change-Id: I4493c82be030186e61aef597ea0e6f43bcf95a32
GitHub-Last-Rev: ee40cf81acf70f553bfc63a21a41ce0174857043
GitHub-Pull-Request: golang/go#69394
Reviewed-on: https://go-review.googlesource.com/c/go/+/612396
Reviewed-by: Michael Matloob <matloob@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/go/internal/work/gc.go
src/cmd/go/testdata/script/build_shared_reproducible.txt [new file with mode: 0644]