Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
doc: in 1.15 release notes, warn that -buildmode=pie will prevent static builds #40719
This means this classical incantation for static builds, that worked on Go1.14:
will instead silently produce dynamically linked binaries in Go 1.15.
We already had a report of a user that was stumped by the change: #40711.
Should we warn about this in the linker section of the 1.15 release notes?
I don't think it prevent static build. You can still use external linking with
Maybe the linker can warn if it is internal linking but
I'm not sure we need to update the release notes. We only changed the default, and
"will prevent static builds... unless you add an additional flag, that wasn't needed before" is what I meant. I know that you can still build static binaries. I'm just not sure that's easy to understand reading that sentence about the linker in the release notes.
…l be used for building PIE In Go 1.15 we switched the default linking mode for PIE on Linux/AMD64 and Linux/ARM64 to internal linking. Clarify that the previous behavior (external linking) can still be used with a flag. Updates #40719. Change-Id: Ib7042622bc91e1b1aa31f520990d03b5eb6c56bb Reviewed-on: https://go-review.googlesource.com/c/go/+/248199 Reviewed-by: Ian Lance Taylor <firstname.lastname@example.org> (cherry picked from commit 50f63a7) Reviewed-on: https://go-review.googlesource.com/c/go/+/248330