]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/cgo: remove hardcoded '-pie' ldflag for linux/arm
authorjochen weber <jochen.weber80@gmail.com>
Fri, 14 May 2021 12:45:13 +0000 (12:45 +0000)
committerCherry Mui <cherryyz@google.com>
Mon, 20 Sep 2021 15:19:44 +0000 (15:19 +0000)
commit119213566a8e0da729a8bccc7d7f7d525f0c1cf9
tree67498a664ee0cbd4acfd578d964f91c89dfe837a
parenta83a5587331392fc9483d183e446586b463ad8aa
cmd/cgo: remove hardcoded '-pie' ldflag for linux/arm

a minimally invasive fix proposal for #45940. which keeps the fix for #26197.

an alternative for (#26197) could be to fail if we have both flags. adding/removing a flag without an message to the user is inconvenient.

Change-Id: I6ac2524d81ff57202fbe3032a53afd5106270a9e
GitHub-Last-Rev: edaf02fa455329b5d794a139f99874b5e8cc12d1
GitHub-Pull-Request: golang/go#45989
Reviewed-on: https://go-review.googlesource.com/c/go/+/317569
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/work/exec.go